summaryrefslogtreecommitdiffstats
path: root/source/smbd/aio.c
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
commit8fd0ec58360a349826508fc361a943650fdd6694 (patch)
treeceb8c44b18b4a10d067607e29b6d87674ddbf1ca /source/smbd/aio.c
parent429dff31663e71556b5193b25d5b8e7e09fa5b9c (diff)
downloadsamba-8fd0ec58360a349826508fc361a943650fdd6694.tar.gz
samba-8fd0ec58360a349826508fc361a943650fdd6694.tar.xz
samba-8fd0ec58360a349826508fc361a943650fdd6694.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
Diffstat (limited to 'source/smbd/aio.c')
-rw-r--r--source/smbd/aio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/smbd/aio.c b/source/smbd/aio.c
index fd886178f60..94253484746 100644
--- a/source/smbd/aio.c
+++ b/source/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. */