main: ignore SIGHUP in master process

This commit is contained in:
Daniel Eklöf 2019-11-03 13:23:49 +01:00
parent a8cb6c531e
commit d26c67e589
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

5
main.c
View file

@ -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");