Skip to content

Commit

Permalink
Explicitly reset the SIGPIPE handler in child processes
Browse files Browse the repository at this point in the history
  • Loading branch information
kovidgoyal committed Dec 20, 2018
1 parent a97c440 commit 056c2c1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions kitty/child.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 056c2c1

Please sign in to comment.