From f18b4e95bffb25fa016dd6e7f9a128a9fc69466f Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sat, 29 Aug 1998 03:10:39 +0000 Subject: don't exit on a SIGPIPE --- source/nmbd/nmbd.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/source/nmbd/nmbd.c b/source/nmbd/nmbd.c index 9b872f8ffe0..3bb2584eaf2 100644 --- a/source/nmbd/nmbd.c +++ b/source/nmbd/nmbd.c @@ -111,8 +111,7 @@ static void sig_pipe(int sig) BlockSignals( True, SIGPIPE ); DEBUG( 0, ("Got SIGPIPE\n") ); - if ( !is_daemon ) - exit(1); + BlockSignals( False, SIGPIPE ); } /* sig_pipe */ -- cgit