From: Volker Lendecke Date: Sun, 8 Aug 2010 13:15:01 +0000 (+0200) Subject: s3: Lift the smbd_messaging_context from smbd_sig_hup_handler X-Git-Url: http://git.samba.org/?p=abartlet%2Fsamba.git%2F.git;a=commitdiff_plain;h=5281e6294112a521e2c9603f1617b18107480973 s3: Lift the smbd_messaging_context from smbd_sig_hup_handler --- diff --git a/source3/smbd/process.c b/source3/smbd/process.c index 8e97d4086ff..9e7b73d2d13 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"); }