aboutsummaryrefslogtreecommitdiff
path: root/libraries/Bridge/Process.cpp
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.cpp
parent1dd29064350f40d8f1d644f57d25537b1b2d9501 (diff)
Bridge: now processes start can be checked for errors
Diffstat (limited to 'libraries/Bridge/Process.cpp')
-rw-r--r--libraries/Bridge/Process.cpp6
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 &param) {
}
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() {