From da2b2264b381e53b01a45e08e82d984c4430286c Mon Sep 17 00:00:00 2001 From: Cristian Maglie Date: Fri, 7 Jun 2013 17:40:10 +0200 Subject: Bridge: now processes start can be checked for errors --- libraries/Bridge/Process.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libraries/Bridge/Process.h') 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(); -- cgit v1.2.3-18-g5258