diff --git a/kitty/child-monitor.c b/kitty/child-monitor.c index c538cb961..2fc27ec5b 100644 --- a/kitty/child-monitor.c +++ b/kitty/child-monitor.c @@ -137,7 +137,7 @@ new(PyTypeObject *type, PyObject *args, PyObject UNUSED *kwds) { return NULL; } self = (ChildMonitor *)type->tp_alloc(type, 0); - if (!init_loop_data(&self->io_loop_data, 5, SIGINT, SIGTERM, SIGCHLD, SIGUSR1, SIGUSR2)) return PyErr_SetFromErrno(PyExc_OSError); + if (!init_loop_data(&self->io_loop_data, 6, SIGINT, SIGHUP, SIGTERM, SIGCHLD, SIGUSR1, SIGUSR2)) return PyErr_SetFromErrno(PyExc_OSError); self->talk_fd = talk_fd; self->listen_fd = listen_fd; if (self == NULL) return PyErr_NoMemory(); @@ -1246,6 +1246,7 @@ handle_signal(const siginfo_t *siginfo, void *data) { switch(siginfo->si_signo) { case SIGINT: case SIGTERM: + case SIGHUP: ss->kill_signal = true; break; case SIGCHLD: