diff options
author | Andrew Tridgell <tridge@samba.org> | 1998-09-02 05:00:47 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 1998-09-02 05:00:47 +0000 |
commit | 148691b1c5e8e93b02762757345a54c82e6fdadc (patch) | |
tree | 08f4f6c366bc0e5f56e924bc44db1c2c72aa3fc0 /source3/nmbd/nmbd.c | |
parent | 054a7bcd3a01d6a4fa48be816f8218541d0cbd52 (diff) | |
download | samba-148691b1c5e8e93b02762757345a54c82e6fdadc.tar.gz samba-148691b1c5e8e93b02762757345a54c82e6fdadc.tar.bz2 samba-148691b1c5e8e93b02762757345a54c82e6fdadc.zip |
we are never interested in SIGPIPE so just ignore (block) it
always. Don't even install a handler.
(This used to be commit 72c383f4b7bcce5374632dc972df16ab0e2542b9)
Diffstat (limited to 'source3/nmbd/nmbd.c')
-rw-r--r-- | source3/nmbd/nmbd.c | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/source3/nmbd/nmbd.c b/source3/nmbd/nmbd.c index 72cc9408d5..ef3713c134 100644 --- a/source3/nmbd/nmbd.c +++ b/source3/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" ); |