1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00

smbd: Restart notifyd

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
Volker Lendecke 2016-06-24 16:29:28 +02:00 committed by Jeremy Allison
parent cf7fea2312
commit fef0c3d271

View File

@ -595,6 +595,18 @@ static void remove_child_pid(struct smbd_parent_context *parent,
return;
}
if (pid == procid_to_pid(&parent->notifyd)) {
bool ok;
DBG_WARNING("Restarting notifyd\n");
ok = smbd_notifyd_init(parent->msg_ctx, false,
&parent->notifyd);
if (!ok) {
DBG_ERR("Failed to restart notifyd\n");
}
return;
}
iov[0] = (struct iovec) { .iov_base = (uint8_t *)&pid,
.iov_len = sizeof(pid) };
iov[1] = (struct iovec) { .iov_base = (uint8_t *)&unclean_shutdown,