diff options
author | Stefan Metzmacher <metze@samba.org> | 2008-03-10 12:46:17 +0100 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2008-03-11 20:16:51 +0100 |
commit | ebe8a8985c88dd8e80794d84015e0ab439c6e6af (patch) | |
tree | d33fa17da6568f9c3e023d705bb5a0ac7a6b635b /source4 | |
parent | 6743de076db8f8ddadb59b13f2ceaabb17f385d0 (diff) | |
download | samba-ebe8a8985c88dd8e80794d84015e0ab439c6e6af.tar.gz samba-ebe8a8985c88dd8e80794d84015e0ab439c6e6af.tar.bz2 samba-ebe8a8985c88dd8e80794d84015e0ab439c6e6af.zip |
events_signal: pass down the correct siginfo_t struct to the event handler
metze
(This used to be commit 4b071236867ca5c2c0451ad3acc8a9debb0549e4)
Diffstat (limited to 'source4')
-rw-r--r-- | source4/lib/events/events_signal.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/lib/events/events_signal.c b/source4/lib/events/events_signal.c index aec34339c3..c0771cbe01 100644 --- a/source4/lib/events/events_signal.c +++ b/source4/lib/events/events_signal.c @@ -257,7 +257,7 @@ int common_event_check_signal(struct event_context *ev) for (j=0;j<count;j++) { /* note the use of the sig_info array as a ring buffer */ - int ofs = (counter.count + j) % SA_INFO_QUEUE_COUNT; + int ofs = ((count-1) + j) % SA_INFO_QUEUE_COUNT; se->handler(ev, se, i, 1, (void*)&sig_state->sig_info[i][ofs], se->private_data); |