diff options
author | Samba Release Account <samba-bugs@samba.org> | 1997-05-31 01:11:40 +0000 |
---|---|---|
committer | Samba Release Account <samba-bugs@samba.org> | 1997-05-31 01:11:40 +0000 |
commit | 9f4e01224751134c2f7701e2aea87d06a79d77a4 (patch) | |
tree | cc64a8070622596af11a4c47b9fe2c100be69863 /source/namepacket.c | |
parent | fbeaf146c0903f0939d1128af01cff8ea18a2546 (diff) | |
download | samba-9f4e01224751134c2f7701e2aea87d06a79d77a4.tar.gz samba-9f4e01224751134c2f7701e2aea87d06a79d77a4.tar.xz samba-9f4e01224751134c2f7701e2aea87d06a79d77a4.zip |
namepacket.c: Block SIGTERM correctly - we can only take them at defined points.
nameserv.c: Fixup name release code - used when we are going down.
nameservreply.c: Relaxed check for deleting name - original code never deleted.
nmbd.c: Block SIGTERM signals most of the time - see comment on namepacket above.
Jeremy (jallison@whistle.com)
Diffstat (limited to 'source/namepacket.c')
-rw-r--r-- | source/namepacket.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/namepacket.c b/source/namepacket.c index 31cad927911..418155bbd85 100644 --- a/source/namepacket.c +++ b/source/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)) { |