r21288: Merge from Volker :
authorJeremy Allison <jra@samba.org>
Sun, 11 Feb 2007 23:49:17 +0000 (23:49 +0000)
committerJeremy Allison <jra@samba.org>
Sun, 11 Feb 2007 23:49:17 +0000 (23:49 +0000)
Fix an off by one error in the signal handler for aio: We can actually receive
AIO_PENDING_SIZE signals, not one less.

source/smbd/aio.c

index fd886178f606fb2c97d44395307105e2b25767ed..942534847468ca1d4df6663975196045e7c81200 100644 (file)
@@ -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. */