mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-24 04:23:33 +08:00
POSIX: Force shell to not immediately return
This commit is contained in:
@@ -69,6 +69,8 @@ static void run_cmd(const vector<string> &appargs) {
|
|||||||
arg[i] = (char *)0;
|
arg[i] = (char *)0;
|
||||||
cout << "Running: " << command << "\n";
|
cout << "Running: " << command << "\n";
|
||||||
apps[command](i,(char **)arg);
|
apps[command](i,(char **)arg);
|
||||||
|
// XXX hack to prevent shell returning too fast
|
||||||
|
usleep(250000);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user