diff options
author | Volker Lendecke <vl@samba.org> | 2010-08-08 15:18:12 +0200 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2010-08-08 18:09:33 +0200 |
commit | 75b4dfd14d4dac5268c01351768b2317fcce34fb (patch) | |
tree | 7fc41eea36749fb3502c30d75522a152325a8e2b /source3/smbd/process.c | |
parent | 5281e6294112a521e2c9603f1617b18107480973 (diff) | |
download | samba-75b4dfd14d4dac5268c01351768b2317fcce34fb.tar.gz |
s3: Lift the smbd_messaging_context from smbd_setup_sig_hup_handler
Diffstat (limited to 'source3/smbd/process.c')
-rw-r--r-- | source3/smbd/process.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/source3/smbd/process.c b/source3/smbd/process.c index 9e7b73d2d13..a5122245853 100644 --- a/source3/smbd/process.c +++ b/source3/smbd/process.c @@ -917,15 +917,13 @@ static void smbd_sig_hup_handler(struct tevent_context *ev, reload_services(msg_ctx, False); } -void smbd_setup_sig_hup_handler(void) +void smbd_setup_sig_hup_handler(struct tevent_context *ev, + struct messaging_context *msg_ctx) { struct tevent_signal *se; - se = tevent_add_signal(smbd_event_context(), - smbd_event_context(), - SIGHUP, 0, - smbd_sig_hup_handler, - smbd_messaging_context()); + se = tevent_add_signal(ev, ev, SIGHUP, 0, smbd_sig_hup_handler, + msg_ctx); if (!se) { exit_server("failed to setup SIGHUP handler"); } |