diff --git a/fishd.cpp b/fishd.cpp index d725e43d2..503cefa69 100644 --- a/fishd.cpp +++ b/fishd.cpp @@ -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.