diff options
author | Stefan Metzmacher <metze@samba.org> | 2018-03-22 10:54:41 +0100 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2018-06-18 08:59:21 +0200 |
commit | c835ffa72ddfd2431d22909148913b50f0d829d1 (patch) | |
tree | 950e0b5ef8b7fed60158349d6b7980370d529b45 /source3/smbd/process.c | |
parent | 182991c26c8149c79b13a277b9822efc49fd1df0 (diff) | |
download | samba-c835ffa72ddfd2431d22909148913b50f0d829d1.tar.gz |
smbd: use sconn->root_ev_ctx for smbd_sig_{term,hup}_handler()
They already call change_to_root_user(), which can be removed
later.
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
Diffstat (limited to 'source3/smbd/process.c')
-rw-r--r-- | source3/smbd/process.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/smbd/process.c b/source3/smbd/process.c index 2363eb78ea5..d2553049cd2 100644 --- a/source3/smbd/process.c +++ b/source3/smbd/process.c @@ -977,7 +977,7 @@ static void smbd_setup_sig_term_handler(struct smbd_server_connection *sconn) { struct tevent_signal *se; - se = tevent_add_signal(sconn->ev_ctx, + se = tevent_add_signal(sconn->root_ev_ctx, sconn, SIGTERM, 0, smbd_sig_term_handler, @@ -1007,7 +1007,7 @@ static void smbd_setup_sig_hup_handler(struct smbd_server_connection *sconn) { struct tevent_signal *se; - se = tevent_add_signal(sconn->ev_ctx, + se = tevent_add_signal(sconn->root_ev_ctx, sconn, SIGHUP, 0, smbd_sig_hup_handler, |