summaryrefslogtreecommitdiff
path: root/ctdb
diff options
context:
space:
mode:
authorAmitay Isaacs <amitay@gmail.com>2017-11-10 12:18:01 +1100
committerMartin Schwenke <martins@samba.org>2017-11-21 05:03:16 +0100
commit49308f7f22f3d6fa05cc81fdef3db020e503fa9f (patch)
tree5518355b3f91e0100fa5edd32e07ce7922b586fb /ctdb
parent848f2425984667c243ccac847b8f48a66ce10178 (diff)
downloadsamba-49308f7f22f3d6fa05cc81fdef3db020e503fa9f.tar.gz
ctdb-common: Call missing tevent_wakeup_recv() in sock_daemon
https://bugzilla.samba.org/show_bug.cgi?id=13153 Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net>
Diffstat (limited to 'ctdb')
-rw-r--r--ctdb/common/sock_daemon.c8
1 files changed, 8 insertions, 0 deletions
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());