1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-08 04:58:40 +03:00

events_signal: pass down the correct siginfo_t struct to the event handler

metze
(This used to be commit 4b071236867ca5c2c0451ad3acc8a9debb0549e4)
This commit is contained in:
Stefan Metzmacher 2008-03-10 12:46:17 +01:00
parent 6743de076d
commit ebe8a8985c

View File

@ -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);