summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2007-02-11 13:42:48 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:17:53 -0500
commit4f5cfc9899295a5c14f734a6c92b3c902ff738d6 (patch)
tree025ebfb72ed94c1c18bd83b50bee4345e0c95802
parent985a26118a3d5411e62c34aa0d62efa68465b352 (diff)
downloadsamba-4f5cfc9899295a5c14f734a6c92b3c902ff738d6.tar.gz
samba-4f5cfc9899295a5c14f734a6c92b3c902ff738d6.tar.bz2
samba-4f5cfc9899295a5c14f734a6c92b3c902ff738d6.zip
r21277: 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 (This used to be commit 8fd0ec58360a349826508fc361a943650fdd6694)
-rw-r--r--source3/smbd/aio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/smbd/aio.c b/source3/smbd/aio.c
index fd886178f6..9425348474 100644
--- a/source3/smbd/aio.c
+++ b/source3/smbd/aio.c
@@ -158,7 +158,7 @@ static uint16 aio_pending_array[AIO_PENDING_SIZE];
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. */