mirror of
https://github.com/samba-team/samba.git
synced 2024-12-25 23:21:54 +03:00
s3: Remove two uses of smbd_server_fd()
Actually, this is a bit cheating. But those two files depend on smbd_server_conn anyway, it does not make things worse.
This commit is contained in:
parent
5a6be0b314
commit
e784e160ec
@ -928,7 +928,7 @@ static void smbd_sig_hup_handler(struct tevent_context *ev,
|
||||
private_data, struct messaging_context);
|
||||
change_to_root_user();
|
||||
DEBUG(1,("Reloading services after SIGHUP\n"));
|
||||
reload_services(msg_ctx, smbd_server_fd(), False);
|
||||
reload_services(msg_ctx, smbd_server_conn->sock, False);
|
||||
}
|
||||
|
||||
void smbd_setup_sig_hup_handler(struct tevent_context *ev,
|
||||
|
@ -107,7 +107,7 @@ static void smb_conf_updated(struct messaging_context *msg,
|
||||
DEBUG(10,("smb_conf_updated: Got message saying smb.conf was "
|
||||
"updated. Reloading.\n"));
|
||||
change_to_root_user();
|
||||
reload_services(msg, smbd_server_fd(), False);
|
||||
reload_services(msg, smbd_server_conn->sock, False);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user