mirror of
https://github.com/samba-team/samba.git
synced 2025-01-13 13:18:06 +03:00
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>
This commit is contained in:
parent
182991c26c
commit
c835ffa72d
@ -977,7 +977,7 @@ static void smbd_setup_sig_term_handler(struct smbd_server_connection *sconn)
|
|||||||
{
|
{
|
||||||
struct tevent_signal *se;
|
struct tevent_signal *se;
|
||||||
|
|
||||||
se = tevent_add_signal(sconn->ev_ctx,
|
se = tevent_add_signal(sconn->root_ev_ctx,
|
||||||
sconn,
|
sconn,
|
||||||
SIGTERM, 0,
|
SIGTERM, 0,
|
||||||
smbd_sig_term_handler,
|
smbd_sig_term_handler,
|
||||||
@ -1007,7 +1007,7 @@ static void smbd_setup_sig_hup_handler(struct smbd_server_connection *sconn)
|
|||||||
{
|
{
|
||||||
struct tevent_signal *se;
|
struct tevent_signal *se;
|
||||||
|
|
||||||
se = tevent_add_signal(sconn->ev_ctx,
|
se = tevent_add_signal(sconn->root_ev_ctx,
|
||||||
sconn,
|
sconn,
|
||||||
SIGHUP, 0,
|
SIGHUP, 0,
|
||||||
smbd_sig_hup_handler,
|
smbd_sig_hup_handler,
|
||||||
|
Loading…
Reference in New Issue
Block a user