git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8e985c3
)
r21288: Merge from Volker :
author
Jeremy Allison
<jra@samba.org>
Sun, 11 Feb 2007 23:49:17 +0000
(23:49 +0000)
committer
Jeremy 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
patch
|
blob
|
history
diff --git
a/source/smbd/aio.c
b/source/smbd/aio.c
index fd886178f606fb2c97d44395307105e2b25767ed..942534847468ca1d4df6663975196045e7c81200 100644
(file)
--- 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. */