From d26c67e58978cfd66c4e74264977cd0cb8f17a3e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Ekl=C3=B6f?= Date: Sun, 3 Nov 2019 13:23:49 +0100 Subject: [PATCH] main: ignore SIGHUP in master process --- main.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/main.c b/main.c index 1865b37a..7c04e853 100644 --- a/main.c +++ b/main.c @@ -211,6 +211,11 @@ main(int argc, char *const *argv) goto out; } + if (sigaction(SIGHUP, &(struct sigaction){.sa_handler = SIG_IGN}, NULL) < 0) { + LOG_ERRNO("failed to ignore SIGHUP"); + goto out; + } + if (as_server) LOG_INFO("running as server; launch terminals by running footclient");