diff options
author | Mike Buland <eichlan@xagasoft.com> | 2009-12-10 22:35:51 +0000 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2009-12-10 22:35:51 +0000 |
commit | e35e62a080ac636f5820b2f88f75a1383f14d713 (patch) | |
tree | 73af59f762670c0a0dff82b6f707aff63b9ba197 /src/process.h | |
parent | 3cef0a39bc70308fd5a1fb3783c5f4ca716aca80 (diff) | |
download | libbu++-e35e62a080ac636f5820b2f88f75a1383f14d713.tar.gz libbu++-e35e62a080ac636f5820b2f88f75a1383f14d713.tar.bz2 libbu++-e35e62a080ac636f5820b2f88f75a1383f14d713.tar.xz libbu++-e35e62a080ac636f5820b2f88f75a1383f14d713.zip |
Process is working much better, it actually follows the guidelines for most of
it's functions now, such as isEos and whotnot, although it won't work in non-
blocking mode yet, and I'm still trying to figure out a good way to have it
deal with both stdout and stderr.
Diffstat (limited to 'src/process.h')
-rw-r--r-- | src/process.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/process.h b/src/process.h index 121b2dc..e04bb59 100644 --- a/src/process.h +++ b/src/process.h | |||
@@ -53,6 +53,13 @@ namespace Bu | |||
53 | virtual bool isBlocking(); | 53 | virtual bool isBlocking(); |
54 | virtual void setBlocking( bool bBlocking=true ); | 54 | virtual void setBlocking( bool bBlocking=true ); |
55 | 55 | ||
56 | /** | ||
57 | * Returns the pid of the child process, or zero if there is no | ||
58 | * currently running child. Note that a read operation must be | ||
59 | * performed in order to discover that the child has ended. | ||
60 | */ | ||
61 | pid_t getPid(); | ||
62 | |||
56 | private: | 63 | private: |
57 | int iStdIn; | 64 | int iStdIn; |
58 | int iStdOut; | 65 | int iStdOut; |