diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/disp-nis.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/disp-nis.c b/src/disp-nis.c index ce78462..0f6c4ee 100644 --- a/src/disp-nis.c +++ b/src/disp-nis.c @@ -628,7 +628,13 @@ dispatch_accept_client(struct plugin_state *state, int fd) } flags = fcntl(fd, F_GETFL); if ((flags & O_NONBLOCK) == 0) { - fcntl(fd, F_SETFL, flags | O_NONBLOCK); + if (fcntl(fd, F_SETFL, flags | O_NONBLOCK) == -1) { + slapi_log_error(SLAPI_LOG_PLUGIN, + state->plugin_desc->spd_id, + "error marking new connected client " + "on %d as non-blocking: %s\n", fd, + strerror(errno)); + } } slapi_log_error(SLAPI_LOG_PLUGIN, state->plugin_desc->spd_id, "new connected client on %d\n", fd); |