summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2009-01-12 18:11:40 +0100
committerStefan Metzmacher <metze@samba.org>2009-01-20 00:41:09 +0100
commit8d203d3cabdea6b3b8903432bcbc889ad6358011 (patch)
treeb8ca7b049f5a61a18b22a3ddc33f5d9c2820ba75 /source3
parentfcf9f72e042ca97ede28a3d39c3ce406a3808b18 (diff)
downloadsamba-8d203d3cabdea6b3b8903432bcbc889ad6358011.tar.gz
samba-8d203d3cabdea6b3b8903432bcbc889ad6358011.tar.bz2
samba-8d203d3cabdea6b3b8903432bcbc889ad6358011.zip
s3:events: add support for signal events
metze
Diffstat (limited to 'source3')
-rw-r--r--source3/lib/events.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/source3/lib/events.c b/source3/lib/events.c
index 8deaa18edb..74f30a709a 100644
--- a/source3/lib/events.c
+++ b/source3/lib/events.c
@@ -86,6 +86,11 @@ bool run_events(struct tevent_context *ev,
bool fired = false;
struct tevent_fd *fde, *next;
+ if (ev->signal_events &&
+ tevent_common_check_signal(ev)) {
+ return true;
+ }
+
/* Run all events that are pending, not just one (as we
did previously. */
@@ -262,6 +267,7 @@ static const struct tevent_ops s3_event_ops = {
.get_fd_flags = tevent_common_fd_get_flags,
.set_fd_flags = tevent_common_fd_set_flags,
.add_timer = tevent_common_add_timer,
+ .add_signal = tevent_common_add_signal,
.loop_once = s3_event_loop_once,
.loop_wait = s3_event_loop_wait,
};