mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-30 19:41:15 -03:00
Ignore SIGPIPE in fishd. Fixes #1084
This commit is contained in:
committed by
David Adam
parent
7f4908b0db
commit
0986b6d991
@@ -706,13 +706,14 @@ static void daemonize()
|
|||||||
setup_fork_guards();
|
setup_fork_guards();
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Make fishd ignore the HUP signal.
|
Make fishd ignore the HUP and PIPE signals.
|
||||||
*/
|
*/
|
||||||
struct sigaction act;
|
struct sigaction act;
|
||||||
sigemptyset(& act.sa_mask);
|
sigemptyset(& act.sa_mask);
|
||||||
act.sa_flags=0;
|
act.sa_flags=0;
|
||||||
act.sa_handler=SIG_IGN;
|
act.sa_handler=SIG_IGN;
|
||||||
sigaction(SIGHUP, &act, 0);
|
sigaction(SIGHUP, &act, 0);
|
||||||
|
sigaction(SIGPIPE, &act, 0);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Make fishd save and exit on the TERM signal.
|
Make fishd save and exit on the TERM signal.
|
||||||
|
|||||||
Reference in New Issue
Block a user