From 4f5cfc9899295a5c14f734a6c92b3c902ff738d6 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Sun, 11 Feb 2007 13:42:48 +0000 Subject: 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) --- source3/smbd/aio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source3') 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. */ -- cgit