diff options
author | 2014-02-14 10:12:41 -0800 | |
---|---|---|
committer | 2014-09-24 17:51:07 +0800 | |
commit | 0986b6d9917b719165eb8a18a305cba2e920c007 (patch) | |
tree | 9152e071d003cc0bce6adb5c3f53ed7c9b478de3 | |
parent | 7f4908b0db5f14566f9881c9ac01154eaba78ee3 (diff) |
Ignore SIGPIPE in fishd. Fixes #1084
-rw-r--r-- | fishd.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -706,13 +706,14 @@ static void daemonize() setup_fork_guards(); /* - Make fishd ignore the HUP signal. + Make fishd ignore the HUP and PIPE signals. */ struct sigaction act; sigemptyset(& act.sa_mask); act.sa_flags=0; act.sa_handler=SIG_IGN; sigaction(SIGHUP, &act, 0); + sigaction(SIGPIPE, &act, 0); /* Make fishd save and exit on the TERM signal. |