mirror of
https://github.com/samba-team/samba.git
synced 2024-12-22 13:34:15 +03:00
ctdb-event: Check the return status of sock_daemon_set_startup_fd
BUG: https://bugzilla.samba.org/show_bug.cgi?id=13659 Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net>
This commit is contained in:
parent
80549927bc
commit
a190960380
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user