summaryrefslogtreecommitdiff
path: root/ctdb
diff options
context:
space:
mode:
Diffstat (limited to 'ctdb')
-rw-r--r--ctdb/event/event_daemon.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/ctdb/event/event_daemon.c b/ctdb/event/event_daemon.c
index c1c6852cca5..3cab3306b02 100644
--- a/ctdb/event/event_daemon.c
+++ b/ctdb/event/event_daemon.c
@@ -244,6 +244,7 @@ int main(int argc, const char **argv)
const char *t;
int interactive = 0;
int opt, ret;
+ bool ok;
pc = poptGetContext(argv[0],
argc,
@@ -343,7 +344,11 @@ int main(int argc, const char **argv)
}
if (options.startup_fd != -1) {
- sock_daemon_set_startup_fd(e_state->sockd, options.startup_fd);
+ ok = sock_daemon_set_startup_fd(e_state->sockd,
+ options.startup_fd);
+ if (!ok) {
+ goto fail;
+ }
}
ret = sock_daemon_run(e_state->ev,