mirror of
https://github.com/samba-team/samba.git
synced 2025-02-28 01:58:17 +03:00
s3/notifyd: ensure notifyd doesn't return from smbd_notifyd_init
Bug: https://bugzilla.samba.org/show_bug.cgi?id=12910 Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
parent
85b10a636e
commit
7f4e7cfd1b
@ -390,6 +390,7 @@ static bool smbd_notifyd_init(struct messaging_context *msg, bool interactive,
|
||||
struct tevent_req *req;
|
||||
pid_t pid;
|
||||
NTSTATUS status;
|
||||
bool ok;
|
||||
|
||||
if (interactive) {
|
||||
req = notifyd_req(msg, ev);
|
||||
@ -431,7 +432,12 @@ static bool smbd_notifyd_init(struct messaging_context *msg, bool interactive,
|
||||
messaging_send(msg, pid_to_procid(getppid()), MSG_SMB_NOTIFY_STARTED,
|
||||
NULL);
|
||||
|
||||
return tevent_req_poll(req, ev);
|
||||
ok = tevent_req_poll(req, ev);
|
||||
if (!ok) {
|
||||
DBG_WARNING("tevent_req_poll returned %s\n", strerror(errno));
|
||||
exit(1);
|
||||
}
|
||||
exit(0);
|
||||
}
|
||||
|
||||
static void notifyd_init_trigger(struct tevent_req *req);
|
||||
|
Loading…
x
Reference in New Issue
Block a user