svn commit: samba r21277 - in branches/SAMBA_3_0/source/smbd: .
vlendec at samba.org
vlendec at samba.org
Sun Feb 11 13:42:48 GMT 2007
Author: vlendec
Date: 2007-02-11 13:42:48 +0000 (Sun, 11 Feb 2007)
New Revision: 21277
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=21277
Log:
Fix an off by one error in the signal handler for aio: We can actually receive
AIO_PENDING_SIZE signals, not one less.
Jeremy I'm not merging this to 3_0_25, I want you to look at it first!
Volker
Modified:
branches/SAMBA_3_0/source/smbd/aio.c
Changeset:
Modified: branches/SAMBA_3_0/source/smbd/aio.c
===================================================================
--- branches/SAMBA_3_0/source/smbd/aio.c 2007-02-11 12:03:25 UTC (rev 21276)
+++ branches/SAMBA_3_0/source/smbd/aio.c 2007-02-11 13:42:48 UTC (rev 21277)
@@ -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