summaryrefslogtreecommitdiffstats
path: root/source/nmbd/nmbd.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>1998-09-02 05:00:47 +0000
committerAndrew Tridgell <tridge@samba.org>1998-09-02 05:00:47 +0000
commit72c383f4b7bcce5374632dc972df16ab0e2542b9 (patch)
tree8d1d4b815e7ba08faea4b2eeddd3b39ecc5bc842 /source/nmbd/nmbd.c
parentf297662d64da9423e3d2efc6c602e40613c4236e (diff)
downloadsamba-72c383f4b7bcce5374632dc972df16ab0e2542b9.tar.gz
samba-72c383f4b7bcce5374632dc972df16ab0e2542b9.tar.xz
samba-72c383f4b7bcce5374632dc972df16ab0e2542b9.zip
we are never interested in SIGPIPE so just ignore (block) it
always. Don't even install a handler.
Diffstat (limited to 'source/nmbd/nmbd.c')
-rw-r--r--source/nmbd/nmbd.c14
1 files changed, 2 insertions, 12 deletions
diff --git a/source/nmbd/nmbd.c b/source/nmbd/nmbd.c
index 72cc9408d51..ef3713c1342 100644
--- a/source/nmbd/nmbd.c
+++ b/source/nmbd/nmbd.c
@@ -103,17 +103,6 @@ static void sig_hup(int sig)
} /* sig_hup */
-/**************************************************************************** **
- catch a sigpipe
- **************************************************************************** */
-static void sig_pipe(int sig)
-{
- BlockSignals( True, SIGPIPE );
-
- DEBUG( 0, ("Got SIGPIPE\n") );
-
- BlockSignals( False, SIGPIPE );
-} /* sig_pipe */
#if DUMP_CORE
/**************************************************************************** **
@@ -432,7 +421,8 @@ static BOOL open_sockets(BOOL isdaemon, int port)
if ( ClientNMB == -1 )
return( False );
- CatchSignal( SIGPIPE, SIGNAL_CAST sig_pipe );
+ /* we are never interested in SIGPIPE */
+ BlockSignals(True,SIGPIPE);
set_socket_options( ClientNMB, "SO_BROADCAST" );
set_socket_options( ClientDGRAM, "SO_BROADCAST" );