From de8bae3f0f5ac32c4599009bb3260cea80653e9c Mon Sep 17 00:00:00 2001 From: ridiculousfish Date: Fri, 14 Feb 2014 10:12:41 -0800 Subject: Ignore SIGPIPE in fishd. Fixes #1084 --- fishd.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'fishd.cpp') diff --git a/fishd.cpp b/fishd.cpp index 5e2a3648..30ded3cd 100644 --- a/fishd.cpp +++ b/fishd.cpp @@ -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. -- cgit v1.2.3