From 056c2c12bb1b1a459bfb79356e0472cd4b246dd1 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 20 Dec 2018 09:06:21 +0530 Subject: [PATCH] Explicitly reset the SIGPIPE handler in child processes Fixes #1253 --- kitty/child.c | 1 + 1 file changed, 1 insertion(+) diff --git a/kitty/child.c b/kitty/child.c index 31e78ad7a..c520601b3 100644 --- a/kitty/child.c +++ b/kitty/child.c @@ -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