mirror of
https://github.com/samba-team/samba.git
synced 2025-03-27 22:50:26 +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> (cherry picked from commit a1909603808b994b7822b697494e39e8da4aaa66) Autobuild-User(v4-8-test): Karolin Seeger <kseeger@samba.org> Autobuild-Date(v4-8-test): Mon Oct 29 14:11:44 CET 2018 on sn-devel-144
This commit is contained in:
parent
7ead723db0
commit
ec065a8ac2
@ -990,6 +990,7 @@ int main(int argc, const char **argv)
|
||||
struct sock_socket_funcs socket_funcs;
|
||||
struct stat statbuf;
|
||||
int opt, ret;
|
||||
bool ok;
|
||||
|
||||
/* Set default options */
|
||||
options.pid = -1;
|
||||
@ -1073,7 +1074,10 @@ int main(int argc, const char **argv)
|
||||
}
|
||||
|
||||
if (options.startup_fd != -1) {
|
||||
sock_daemon_set_startup_fd(sockd, options.startup_fd);
|
||||
ok = sock_daemon_set_startup_fd(sockd, options.startup_fd);
|
||||
if (!ok) {
|
||||
goto fail;
|
||||
}
|
||||
}
|
||||
|
||||
ret = sock_daemon_run(ev, sockd,
|
||||
|
Loading…
x
Reference in New Issue
Block a user