summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2010-08-08 15:15:01 +0200
committerVolker Lendecke <vl@samba.org>2010-08-08 18:09:33 +0200
commit5281e6294112a521e2c9603f1617b18107480973 (patch)
tree9bf61c7709bf049e844eb9e348d8513c4f119ffd
parent39da717fe1583308239278615ac44f8b910c50e3 (diff)
downloadsamba-5281e6294112a521e2c9603f1617b18107480973.tar.gz
samba-5281e6294112a521e2c9603f1617b18107480973.tar.bz2
samba-5281e6294112a521e2c9603f1617b18107480973.zip
s3: Lift the smbd_messaging_context from smbd_sig_hup_handler
-rw-r--r--source3/smbd/process.c6
1 files 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");
}