fix close_allv() sentinel
This commit is contained in:
parent
bd92bfe643
commit
9993ac23ca
@ -724,10 +724,8 @@ SystemExec::start (int stderr_mode)
|
|||||||
signal(SIGPIPE, SIG_DFL);
|
signal(SIGPIPE, SIG_DFL);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef __WIN32__
|
int good_fds[1] = { -1 };
|
||||||
int good_fds[1] = { 0 };
|
|
||||||
close_allv(good_fds);
|
close_allv(good_fds);
|
||||||
#endif
|
|
||||||
|
|
||||||
::execve(argp[0], argp, envp);
|
::execve(argp[0], argp, envp);
|
||||||
/* if we reach here something went wrong.. */
|
/* if we reach here something went wrong.. */
|
||||||
|
Loading…
Reference in New Issue
Block a user