diff options
author | ridiculousfish <corydoras@ridiculousfish.com> | 2014-02-14 10:12:41 -0800 |
---|---|---|
committer | ridiculousfish <corydoras@ridiculousfish.com> | 2014-02-14 16:38:44 -0800 |
commit | de8bae3f0f5ac32c4599009bb3260cea80653e9c (patch) | |
tree | a2714567e0b73653b60c911b07026eb92479b612 /fishd.cpp | |
parent | 1fbf63381782b0badead61d1576ad6a1e29fc3ea (diff) |
Ignore SIGPIPE in fishd. Fixes #1084
Diffstat (limited to 'fishd.cpp')
-rw-r--r-- | fishd.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -667,13 +667,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. |