diff options
Diffstat (limited to 'source3/namepacket.c')
-rw-r--r-- | source3/namepacket.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source3/namepacket.c b/source3/namepacket.c index 31cad92791..418155bbd8 100644 --- a/source3/namepacket.c +++ b/source3/namepacket.c @@ -522,7 +522,10 @@ void listen_for_packets(BOOL run_election) timeout.tv_sec = (run_election||num_response_packets) ? 1:NMBD_SELECT_LOOP; timeout.tv_usec = 0; + /* We can only take term signals when we are in the select. */ + BlockSignals(False, SIGTERM); selrtn = sys_select(&fds,&timeout); + BlockSignals(True, SIGTERM); if (FD_ISSET(ClientNMB,&fds)) { |