From: Stefan Metzmacher Date: Thu, 22 Mar 2018 09:54:41 +0000 (+0100) Subject: smbd: use sconn->root_ev_ctx for smbd_sig_{term,hup}_handler() X-Git-Tag: tevent-0.9.37~273 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c835ffa72ddfd2431d22909148913b50f0d829d1;p=thirdparty%2Fsamba.git 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 Reviewed-by: Ralph Boehme --- 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,