From 5281e6294112a521e2c9603f1617b18107480973 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Sun, 8 Aug 2010 15:15:01 +0200 Subject: [PATCH] s3: Lift the smbd_messaging_context from smbd_sig_hup_handler --- source3/smbd/process.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/source3/smbd/process.c b/source3/smbd/process.c index 8e97d4086f..9e7b73d2d1 100644 --- a/source3/smbd/process.c +++ b/source3/smbd/process.c @@ -910,9 +910,11 @@ static void smbd_sig_hup_handler(struct tevent_context *ev, void *siginfo, void *private_data) { + struct messaging_context *msg_ctx = talloc_get_type_abort( + private_data, struct messaging_context); change_to_root_user(); DEBUG(1,("Reloading services after SIGHUP\n")); - reload_services(smbd_messaging_context(), False); + reload_services(msg_ctx, False); } void smbd_setup_sig_hup_handler(void) @@ -923,7 +925,7 @@ void smbd_setup_sig_hup_handler(void) smbd_event_context(), SIGHUP, 0, smbd_sig_hup_handler, - NULL); + smbd_messaging_context()); if (!se) { exit_server("failed to setup SIGHUP handler"); } -- 2.34.1