fix system-exec (wait for app to start)

This commit is contained in:
Robin Gareus
2014-02-25 09:38:14 +01:00
parent e2adf46e0f
commit cfa94aeccc

View File

@@ -728,7 +728,7 @@ SystemExec::start (int stderr_mode)
signal(SIGPIPE, SIG_DFL);
#endif
int good_fds[1] = { -1 };
int good_fds[2] = { pok[1], -1 };
close_allv(good_fds);
::execve(argp[0], argp, envp);