svn commit: samba r12255 - in branches/SAMBA_4_0/source/smbd: .

metze at samba.org metze at samba.org
Thu Dec 15 16:53:21 GMT 2005


Author: metze
Date: 2005-12-15 16:53:20 +0000 (Thu, 15 Dec 2005)
New Revision: 12255

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=12255

Log:
- we don't use SIGUSR1 anymore, so ignore it
- we don't handle SIGHUP just, so ignore it

metze
Modified:
   branches/SAMBA_4_0/source/smbd/server.c


Changeset:
Modified: branches/SAMBA_4_0/source/smbd/server.c
===================================================================
--- branches/SAMBA_4_0/source/smbd/server.c	2005-12-15 16:32:08 UTC (rev 12254)
+++ branches/SAMBA_4_0/source/smbd/server.c	2005-12-15 16:53:20 UTC (rev 12255)
@@ -106,6 +106,9 @@
 	BlockSignals(True,SIGFPE);
 #endif
 
+	/* We are no longer interested in USR1 */
+	BlockSignals(True, SIGUSR1);
+
 #if defined(SIGUSR2)
 	/* We are no longer interested in USR2 */
 	BlockSignals(True,SIGUSR2);
@@ -114,11 +117,13 @@
 	/* POSIX demands that signals are inherited. If the invoking process has
 	 * these signals masked, we will have problems, as we won't recieve them. */
 	BlockSignals(False, SIGHUP);
-	BlockSignals(False, SIGUSR1);
 	BlockSignals(False, SIGTERM);
+
+	/* as we don't handle on this signals yet, we need to ignore them,
+	 * instead of terminating */
+	CatchSignal(SIGHUP, SIG_IGN);
 }
 
-
 /*
   handle io on stdin
 */



More information about the samba-cvs mailing list