svn commit: samba r20940 - in branches/SAMBA_4_0/source/lib/events: .

tridge at samba.org tridge at samba.org
Sun Jan 21 22:14:06 GMT 2007


Author: tridge
Date: 2007-01-21 22:14:05 +0000 (Sun, 21 Jan 2007)
New Revision: 20940

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

Log:

allow SA_SIGINFO signals to be oneshot. Why you would ever want this
is beyond me :-)

Modified:
   branches/SAMBA_4_0/source/lib/events/events_signal.c


Changeset:
Modified: branches/SAMBA_4_0/source/lib/events/events_signal.c
===================================================================
--- branches/SAMBA_4_0/source/lib/events/events_signal.c	2007-01-21 22:12:19 UTC (rev 20939)
+++ branches/SAMBA_4_0/source/lib/events/events_signal.c	2007-01-21 22:14:05 UTC (rev 20940)
@@ -249,6 +249,9 @@
 					sigaddset(&set, i);
 					sigprocmask(SIG_UNBLOCK, &set, NULL);
 				}
+				if (se->sa_flags & SA_RESETHAND) {
+					talloc_free(se);
+				}
 				continue;
 			}
 #endif



More information about the samba-cvs mailing list