aboutsummaryrefslogtreecommitdiff
path: root/libraries/Bridge/Process.h
diff options
context:
space:
mode:
authorCristian Maglie <c.maglie@bug.st>2013-06-07 17:40:10 +0200
committerCristian Maglie <c.maglie@bug.st>2013-06-07 17:40:10 +0200
commitda2b2264b381e53b01a45e08e82d984c4430286c (patch)
tree3ee2ae536c3b1c31601bfeeca8d4502e1231f768 /libraries/Bridge/Process.h
parent1dd29064350f40d8f1d644f57d25537b1b2d9501 (diff)
Bridge: now processes start can be checked for errors
Diffstat (limited to 'libraries/Bridge/Process.h')
-rw-r--r--libraries/Bridge/Process.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/libraries/Bridge/Process.h b/libraries/Bridge/Process.h
index b48e046..ac22b15 100644
--- a/libraries/Bridge/Process.h
+++ b/libraries/Bridge/Process.h
@@ -39,6 +39,8 @@ public:
unsigned int exitValue();
void close();
+ operator bool () { return started; }
+
// Stream methods
// (read from process stdout)
int available();