24 lines
827 B
Diff
24 lines
827 B
Diff
diff -uPr tevent-0.9.8.orig/tevent_signal.c tevent-0.9.8/tevent_signal.c
|
|
--- tevent-0.9.8.orig/tevent_signal.c 2009-09-23 12:41:48.000000000 -0400
|
|
+++ tevent-0.9.8/tevent_signal.c 2009-09-23 12:42:25.000000000 -0400
|
|
@@ -89,18 +89,12 @@
|
|
SIG_INCREMENT(sig_state->signal_count[signum]);
|
|
SIG_INCREMENT(sig_state->got_signal);
|
|
|
|
- if (sig_state->sig_handlers[signum] != NULL) {
|
|
- ev = sig_state->sig_handlers[signum]->se->event_ctx;
|
|
- /* doesn't matter if this pipe overflows */
|
|
- res = write(ev->pipe_fds[1], &c, 1);
|
|
- }
|
|
-
|
|
/* Write to each unique event context. */
|
|
for (sl = sig_state->sig_handlers[signum]; sl; sl = sl->next) {
|
|
if (sl->se->event_ctx != ev) {
|
|
+ ev = sl->se->event_ctx;
|
|
/* doesn't matter if this pipe overflows */
|
|
res = write(ev->pipe_fds[1], &c, 1);
|
|
- ev = sl->se->event_ctx;
|
|
}
|
|
}
|
|
}
|