Also restore signal handlers for SIGUSR1 and SIGUSR2

This commit is contained in:
Kovid Goyal
2022-06-04 15:15:39 +05:30
parent 5a0a980648
commit ad576c333c

View File

@@ -102,7 +102,7 @@ spawn(PyObject *self UNUSED, PyObject *args) {
sigset_t signals = {0};
struct sigaction act = {.sa_handler=SIG_DFL};
#define SA(which) { if (sigaction(which, &act, NULL) != 0) exit_on_err("sigaction() in child process failed"); }
SA(SIGINT); SA(SIGTERM); SA(SIGCHLD); SA(SIGPIPE);
SA(SIGINT); SA(SIGTERM); SA(SIGCHLD); SA(SIGPIPE); SA(SIGUSR1); SA(SIGUSR2);
#ifdef SIGXFSZ
SA(SIGXFSZ);
#endif