mirror of
https://github.com/samba-team/samba.git
synced 2025-02-04 17:47:26 +03:00
s3:lib: Check return code of set_blocking()
Found by covscan. Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
parent
c79b3e2e8a
commit
5ef3b6deba
@ -84,7 +84,11 @@ bool prefork_create_pool(TALLOC_CTX *mem_ctx,
|
||||
for (i = 0; i < listen_fd_size; i++) {
|
||||
pfp->listen_fds[i] = listen_fds[i];
|
||||
/* force sockets in non-blocking mode */
|
||||
set_blocking(listen_fds[i].fd, false);
|
||||
ret = set_blocking(listen_fds[i].fd, false);
|
||||
if (ret < 0) {
|
||||
DBG_WARNING("Failed to set sockets to non-blocking!\n");
|
||||
return false;
|
||||
}
|
||||
}
|
||||
pfp->main_fn = main_fn;
|
||||
pfp->private_data = private_data;
|
||||
|
Loading…
x
Reference in New Issue
Block a user