mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-05 04:06:08 -05:00
main: ignore SIGHUP in master process
This commit is contained in:
parent
a8cb6c531e
commit
d26c67e589
1 changed files with 5 additions and 0 deletions
5
main.c
5
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");
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue