svn commit: samba r21288 - in branches/SAMBA_3_0_25/source/smbd: .

jra at samba.org jra at samba.org
Sun Feb 11 23:49:18 GMT 2007


Author: jra
Date: 2007-02-11 23:49:17 +0000 (Sun, 11 Feb 2007)
New Revision: 21288

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

Log:
Merge from Volker :
Fix an off by one error in the signal handler for aio: We can actually receive
AIO_PENDING_SIZE signals, not one less.


Modified:
   branches/SAMBA_3_0_25/source/smbd/aio.c


Changeset:
Modified: branches/SAMBA_3_0_25/source/smbd/aio.c
===================================================================
--- branches/SAMBA_3_0_25/source/smbd/aio.c	2007-02-11 22:59:02 UTC (rev 21287)
+++ branches/SAMBA_3_0_25/source/smbd/aio.c	2007-02-11 23:49:17 UTC (rev 21288)
@@ -158,7 +158,7 @@
 
 static void signal_handler(int sig, siginfo_t *info, void *unused)
 {
-	if (signals_received < AIO_PENDING_SIZE - 1) {
+	if (signals_received < AIO_PENDING_SIZE) {
 		aio_pending_array[signals_received] = info->si_value.sival_int;
 		signals_received++;
 	} /* Else signal is lost. */



More information about the samba-cvs mailing list