diff options
author | Cristian Maglie <c.maglie@bug.st> | 2013-06-07 17:40:10 +0200 |
---|---|---|
committer | Cristian Maglie <c.maglie@bug.st> | 2013-06-07 17:40:10 +0200 |
commit | da2b2264b381e53b01a45e08e82d984c4430286c (patch) | |
tree | 3ee2ae536c3b1c31601bfeeca8d4502e1231f768 /libraries/Bridge/Process.cpp | |
parent | 1dd29064350f40d8f1d644f57d25537b1b2d9501 (diff) |
Bridge: now processes start can be checked for errors
Diffstat (limited to 'libraries/Bridge/Process.cpp')
-rw-r--r-- | libraries/Bridge/Process.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/libraries/Bridge/Process.cpp b/libraries/Bridge/Process.cpp index 7265119..59fe2b7 100644 --- a/libraries/Bridge/Process.cpp +++ b/libraries/Bridge/Process.cpp @@ -85,11 +85,13 @@ void Process::addParameter(String ¶m) { } void Process::runAsynchronously() { - handle = bridge.runCommand(*cmdline); + uint8_t err; + handle = bridge.runCommand(*cmdline, err); delete cmdline; cmdline = NULL; - started = true; + if (err==0) + started = true; } boolean Process::running() { |