summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2000-10-12 21:19:49 +0000
committerJeremy Allison <jra@samba.org>2000-10-12 21:19:49 +0000
commitc56301b1d117c27213fe2dc4faf72a1bec19d092 (patch)
tree43ad08a6c4be169cfe4b9be70fe1ac334713669c /source3/smbd
parent2a2a93bebec0d40e26860226f64c4964d5224f3b (diff)
downloadsamba-c56301b1d117c27213fe2dc4faf72a1bec19d092.tar.gz
samba-c56301b1d117c27213fe2dc4faf72a1bec19d092.tar.bz2
samba-c56301b1d117c27213fe2dc4faf72a1bec19d092.zip
Ignore SIGUSR2. Terminate nmbd if we have no interfaces.
Jeremy. (This used to be commit 580e2e044cfd1d011d9f28f0f49ef60ca6ba8d32)
Diffstat (limited to 'source3/smbd')
-rw-r--r--source3/smbd/server.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/source3/smbd/server.c b/source3/smbd/server.c
index 4c136f638b..e4dd661ea5 100644
--- a/source3/smbd/server.c
+++ b/source3/smbd/server.c
@@ -635,6 +635,11 @@ static void usage(char *pname)
BlockSignals(True,SIGFPE);
#endif
+#if defined(SIGUSR2)
+ /* We are no longer interested in USR2 */
+ BlockSignals(True,SIGUSR2);
+#endif
+
/* we want total control over the permissions on created files,
so set our umask to 0 */
umask(0);