Merge pull request #2455 from PX4/shell_return

POSIX: Force shell to not immediately return
This commit is contained in:
Lorenz Meier 2015-06-24 17:39:31 +02:00
commit ff3eaf42fa
1 changed files with 2 additions and 0 deletions

View File

@ -69,6 +69,8 @@ static void run_cmd(const vector<string> &appargs) {
arg[i] = (char *)0;
cout << "Running: " << command << "\n";
apps[command](i,(char **)arg);
// XXX hack to prevent shell returning too fast
usleep(250000);
}
else
{