mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-07-05 15:10:36 +08:00
POSIX: Abort script on executable failure
This commit is contained in:
@@ -91,7 +91,11 @@ static void run_cmd(const vector<string> &appargs)
|
||||
}
|
||||
|
||||
arg[i] = (char *)0;
|
||||
apps[command](i, (char **)arg);
|
||||
int retval = apps[command](i, (char **)arg);
|
||||
|
||||
if (retval) {
|
||||
exit(retval);
|
||||
}
|
||||
usleep(65000);
|
||||
|
||||
} else if (command.compare("help") == 0) {
|
||||
|
||||
Reference in New Issue
Block a user