adeniz
05f0fa5594
Ignore SIGPIPE in writer thread (*nix only). Reason:
Writing to a pipe with no reader raises a signal and returns
error. The Child class handles the error returned. Not ignoring
the signal would result in aborting the process.
git-svn-id: https://svn.microneil.com/svn/CodeDweller/branches/adeniz_1@115 d34b734f-a00e-4b39-a726-e4eeb87269ab
8 lat temu
adeniz
6554f21d90
Ignore return value of ::write().
git-svn-id: https://svn.microneil.com/svn/CodeDweller/branches/adeniz_1@114 d34b734f-a00e-4b39-a726-e4eeb87269ab
8 lat temu
adeniz
4f5cbfdfd3
Output error message to stdout in case of execv failure.
git-svn-id: https://svn.microneil.com/svn/CodeDweller/branches/adeniz_1@113 d34b734f-a00e-4b39-a726-e4eeb87269ab
8 lat temu
adeniz
118d3c41f8
Corrected formatting of error message.
git-svn-id: https://svn.microneil.com/svn/CodeDweller/branches/adeniz_1@110 d34b734f-a00e-4b39-a726-e4eeb87269ab
8 lat temu
adeniz
fe52ca12c5
Formatting change; no functional change.
git-svn-id: https://svn.microneil.com/svn/CodeDweller/branches/adeniz_1@109 d34b734f-a00e-4b39-a726-e4eeb87269ab
8 lat temu
adeniz
c4836264a8
Removed extraneous compiler warnings about unused return values.
git-svn-id: https://svn.microneil.com/svn/CodeDweller/branches/adeniz_1@107 d34b734f-a00e-4b39-a726-e4eeb87269ab
9 lat temu
adeniz
58e3fb951d
Improved error message.
git-svn-id: https://svn.microneil.com/svn/CodeDweller/branches/adeniz_1@100 d34b734f-a00e-4b39-a726-e4eeb87269ab
9 lat temu
adeniz
4af1aca886
Correct Child so that stderr and stdout from the child are
sent to the same output.
Deprecate ChildStream instead of correcting ChildStream.
git-svn-id: https://svn.microneil.com/svn/CodeDweller/branches/adeniz_1@98 d34b734f-a00e-4b39-a726-e4eeb87269ab
9 lat temu
adeniz
5e81074c11
Added Child::closeStdIn().
git-svn-id: https://svn.microneil.com/svn/CodeDweller/branches/adeniz_1@97 d34b734f-a00e-4b39-a726-e4eeb87269ab
9 lat temu
adeniz
2992ac8557
Addressed compiler warning, removed unused variables.
git-svn-id: https://svn.microneil.com/svn/CodeDweller/branches/adeniz_1@87 d34b734f-a00e-4b39-a726-e4eeb87269ab
9 lat temu
adeniz
c9f179a972
Implement I/O with vector<char>.
git-svn-id: https://svn.microneil.com/svn/CodeDweller/branches/adeniz_1@84 d34b734f-a00e-4b39-a726-e4eeb87269ab
9 lat temu
adeniz
b00945c73e
Tested on Windows.
git-svn-id: https://svn.microneil.com/svn/CodeDweller/branches/adeniz_1@83 d34b734f-a00e-4b39-a726-e4eeb87269ab
9 lat temu
adeniz
8fa4e41a55
Implemented Child read(), write(), and writeAndShrink() with strings.
git-svn-id: https://svn.microneil.com/svn/CodeDweller/branches/adeniz_1@82 d34b734f-a00e-4b39-a726-e4eeb87269ab
9 lat temu
adeniz
96c9d39914
Implementing Child with I/O threads, and blocking I/O.
git-svn-id: https://svn.microneil.com/svn/CodeDweller/branches/adeniz_1@81 d34b734f-a00e-4b39-a726-e4eeb87269ab
9 lat temu
adeniz
dc9620460c
Tested with one streambuf for input and output, and inheriting from
iostream.
git-svn-id: https://svn.microneil.com/svn/CodeDweller/branches/adeniz_1@79 d34b734f-a00e-4b39-a726-e4eeb87269ab
9 lat temu
adeniz
20af91c0a2
Implemented new constructors and isRunning(). Renamed terminate() to close().
Call close() in ~ChildStream.
git-svn-id: https://svn.microneil.com/svn/CodeDweller/branches/adeniz_1@78 d34b734f-a00e-4b39-a726-e4eeb87269ab
9 lat temu
adeniz
669f79a111
ChildStream inherits from std::iostream.
git-svn-id: https://svn.microneil.com/svn/CodeDweller/branches/adeniz_1@77 d34b734f-a00e-4b39-a726-e4eeb87269ab
9 lat temu
adeniz
3d82bf14a7
Merged input and output streambuf.
git-svn-id: https://svn.microneil.com/svn/CodeDweller/branches/adeniz_1@76 d34b734f-a00e-4b39-a726-e4eeb87269ab
9 lat temu
adeniz
13c40894aa
Do not throw exception on I/O error. Reason: Not throwing an exception is the expection of c++ streams.
git-svn-id: https://svn.microneil.com/svn/CodeDweller/branches/adeniz_1@69 d34b734f-a00e-4b39-a726-e4eeb87269ab
9 lat temu
adeniz
2b2910bf38
Implemented and tested non-blocking read on Windows.
git-svn-id: https://svn.microneil.com/svn/CodeDweller/branches/adeniz_1@56 d34b734f-a00e-4b39-a726-e4eeb87269ab
10 lat temu
adeniz
8892101288
Tested non-blocking read on Linux.
git-svn-id: https://svn.microneil.com/svn/CodeDweller/branches/adeniz_1@55 d34b734f-a00e-4b39-a726-e4eeb87269ab
10 lat temu
adeniz
93ae8221dc
Testing non-blocking read.
git-svn-id: https://svn.microneil.com/svn/CodeDweller/branches/adeniz_1@54 d34b734f-a00e-4b39-a726-e4eeb87269ab
10 lat temu
adeniz
f1001bc789
Implementing non-blocking read.
git-svn-id: https://svn.microneil.com/svn/CodeDweller/branches/adeniz_1@53 d34b734f-a00e-4b39-a726-e4eeb87269ab
10 lat temu
adeniz
c31de176c5
Use _WIN32 instead of WIN32. Reason: MinGW-W64 defines _WIN32 but not WIN32.
git-svn-id: https://svn.microneil.com/svn/CodeDweller/branches/adeniz_1@51 d34b734f-a00e-4b39-a726-e4eeb87269ab
10 lat temu
adeniz
8fcee57460
Cosmetic change to error message.
git-svn-id: https://svn.microneil.com/svn/CodeDweller/branches/adeniz_1@50 d34b734f-a00e-4b39-a726-e4eeb87269ab
10 lat temu
adeniz
1b283f9772
Correct return type for read() and write().
git-svn-id: https://svn.microneil.com/svn/CodeDweller/branches/adeniz_1@48 d34b734f-a00e-4b39-a726-e4eeb87269ab
10 lat temu
adeniz
dfa9e76316
Cosmetic changes to comments.
git-svn-id: https://svn.microneil.com/svn/CodeDweller/branches/adeniz_1@34 d34b734f-a00e-4b39-a726-e4eeb87269ab
10 lat temu
adeniz
ade5789945
Completed unit tests under Ubuntu for CodeDweller::Child.
git-svn-id: https://svn.microneil.com/svn/CodeDweller/branches/adeniz_1@33 d34b734f-a00e-4b39-a726-e4eeb87269ab
10 lat temu
adeniz
6fc2c7c921
Completed unit tests on Windows.
git-svn-id: https://svn.microneil.com/svn/CodeDweller/branches/adeniz_1@32 d34b734f-a00e-4b39-a726-e4eeb87269ab
10 lat temu
adeniz
f5c9822cd4
Implemented streams for Windows. Tested isDone() and terminate(). Started testing streams.
git-svn-id: https://svn.microneil.com/svn/CodeDweller/branches/adeniz_1@31 d34b734f-a00e-4b39-a726-e4eeb87269ab
10 lat temu
adeniz
ce9852081a
Implemented CodeDweller::Child for Windows except for streams.
git-svn-id: https://svn.microneil.com/svn/CodeDweller/branches/adeniz_1@30 d34b734f-a00e-4b39-a726-e4eeb87269ab
10 lat temu
adeniz
1fac3ab4bc
Implemented child.hpp.
git-svn-id: https://svn.microneil.com/svn/CodeDweller/branches/adeniz_1@29 d34b734f-a00e-4b39-a726-e4eeb87269ab
10 lat temu