Revert "smbd: use sconn->root_ev_ctx for smbd_sig_{term,hup}_handler()"
authorRalph Boehme <slow@samba.org>
Thu, 27 Dec 2018 14:20:54 +0000 (15:20 +0100)
committerStefan Metzmacher <metze@samba.org>
Fri, 11 Jan 2019 22:11:17 +0000 (23:11 +0100)
This reverts commit c835ffa72ddfd2431d22909148913b50f0d829d1.

See the discussion in

https://lists.samba.org/archive/samba-technical/2018-December/131731.html

for the reasoning behind this revert.

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
source3/smbd/process.c

index d255304..2363eb7 100644 (file)
@@ -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->root_ev_ctx,
+       se = tevent_add_signal(sconn->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->root_ev_ctx,
+       se = tevent_add_signal(sconn->ev_ctx,
                               sconn,
                               SIGHUP, 0,
                               smbd_sig_hup_handler,