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:
parent
6743de076d
commit
ebe8a8985c
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user