mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-28 03:01:57 +02:00
@@ -115,6 +115,7 @@ spawn(PyObject *self UNUSED, PyObject *args) {
|
|||||||
for (int c = 3; c < 201; c++) close(c);
|
for (int c = 3; c < 201; c++) close(c);
|
||||||
|
|
||||||
environ = env;
|
environ = env;
|
||||||
|
signal(SIGPIPE, SIG_DFL);
|
||||||
execvp(exe, argv);
|
execvp(exe, argv);
|
||||||
// Report the failure and exec a shell instead, so that we are not left
|
// Report the failure and exec a shell instead, so that we are not left
|
||||||
// with a forked but not exec'ed process
|
// with a forked but not exec'ed process
|
||||||
|
|||||||
Reference in New Issue
Block a user