mirror of
https://github.com/samba-team/samba.git
synced 2025-01-12 09:18:10 +03:00
Revert "smbd: use sconn->root_ev_ctx for smbd_sig_{term,hup}_handler()"
This reverts commit c835ffa72d
.
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>
This commit is contained in:
parent
de10c61105
commit
9d47128f7c
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user