Skip to content
Snippets Groups Projects
Commit d93448eb authored by Kurt Zeilenga's avatar Kurt Zeilenga
Browse files

Added additional shutdown check

parent 893e83f2
No related branches found
No related tags found
No related merge requests found
......@@ -796,6 +796,8 @@ slapd_daemon_task(
continue;
default: /* something happened - deal with it */
if( slapd_shutdown ) continue;
ebadf = 0;
Debug( LDAP_DEBUG_CONNS, "daemon: activity on %d descriptors\n",
ns, 0, 0 );
......@@ -836,9 +838,9 @@ slapd_daemon_task(
if ( !FD_ISSET( slap_listeners[l]->sl_sd, &readfds ) )
continue;
if ( (s = accept( slap_listeners[l]->sl_sd,
(struct sockaddr *) &from, &len )) == AC_SOCKET_INVALID )
{
s = accept( slap_listeners[l]->sl_sd,
(struct sockaddr *) &from, &len );
if ( s == AC_SOCKET_INVALID ) {
int err = sock_errno();
Debug( LDAP_DEBUG_ANY,
"daemon: accept(%ld) failed errno=%d (%s)\n",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment