summaryrefslogtreecommitdiff
path: root/src/process.h
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2010-05-20 06:32:38 +0000
committerMike Buland <eichlan@xagasoft.com>2010-05-20 06:32:38 +0000
commitda38bfc4ed4d6714a5d9f1b42e002fe8221ae268 (patch)
tree986f59307b3849e97d9be90d370fd57a393a3296 /src/process.h
parent8b30bc900f17659d14aeb344e2b4d13d09d334ea (diff)
downloadlibbu++-da38bfc4ed4d6714a5d9f1b42e002fe8221ae268.tar.gz
libbu++-da38bfc4ed4d6714a5d9f1b42e002fe8221ae268.tar.bz2
libbu++-da38bfc4ed4d6714a5d9f1b42e002fe8221ae268.tar.xz
libbu++-da38bfc4ed4d6714a5d9f1b42e002fe8221ae268.zip
Made process easier to use, when you ask it if the process has ended, it
actually checks. novel, eh?
Diffstat (limited to '')
-rw-r--r--src/process.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/process.h b/src/process.h
index 665f1e0..3fcf1f2 100644
--- a/src/process.h
+++ b/src/process.h
@@ -37,6 +37,12 @@ namespace Bu
37 Process( Flags eFlags, const char *sName, const char *argv, ...); 37 Process( Flags eFlags, const char *sName, const char *argv, ...);
38 virtual ~Process(); 38 virtual ~Process();
39 39
40 /**
41 * Waits until the process exits. This blocks the caller until the
42 * child process terminates.
43 */
44 void wait();
45
40 virtual void close(); 46 virtual void close();
41 virtual size_t read( void *pBuf, size_t nBytes ); 47 virtual size_t read( void *pBuf, size_t nBytes );
42 virtual size_t readErr( void *pBuf, size_t nBytes ); 48 virtual size_t readErr( void *pBuf, size_t nBytes );