From: Amitay Isaacs Date: Fri, 10 Nov 2017 01:18:01 +0000 (+1100) Subject: ctdb-common: Call missing tevent_wakeup_recv() in sock_daemon X-Git-Tag: talloc-2.1.11~434 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=49308f7f22f3d6fa05cc81fdef3db020e503fa9f;p=thirdparty%2Fsamba.git ctdb-common: Call missing tevent_wakeup_recv() in sock_daemon https://bugzilla.samba.org/show_bug.cgi?id=13153 Signed-off-by: Amitay Isaacs Reviewed-by: Martin Schwenke --- diff --git a/ctdb/common/sock_daemon.c b/ctdb/common/sock_daemon.c index ba171af52c9..bbeff537103 100644 --- a/ctdb/common/sock_daemon.c +++ b/ctdb/common/sock_daemon.c @@ -634,6 +634,14 @@ static void sock_daemon_run_started(struct tevent_req *subreq) struct sock_daemon_run_state *state = tevent_req_data( req, struct sock_daemon_run_state); struct sock_daemon_context *sockd = state->sockd; + bool status; + + status = tevent_wakeup_recv(subreq); + TALLOC_FREE(subreq); + if (! status) { + tevent_req_error(req, EIO); + return; + } D_NOTICE("daemon started, pid=%u\n", getpid());