parent
a97c440872
commit
056c2c12bb
1 changed files with 1 additions and 0 deletions
|
|
@ -115,6 +115,7 @@ spawn(PyObject *self UNUSED, PyObject *args) {
|
|||
for (int c = 3; c < 201; c++) close(c);
|
||||
|
||||
environ = env;
|
||||
signal(SIGPIPE, SIG_DFL);
|
||||
execvp(exe, argv);
|
||||
// Report the failure and exec a shell instead, so that we are not left
|
||||
// with a forked but not exec'ed process
|
||||
|
|
|
|||
Loading…
Reference in a new issue