*/
#ifndef lint
-static const char rcsid[] = "$Id: os_unix.c,v 1.29 2001/09/06 13:06:12 robs Exp $";
+static const char rcsid[] = "$Id: os_unix.c,v 1.30 2001/09/06 15:48:22 robs Exp $";
#endif /* not lint */
#include "fcgi_config.h"
if (fcntl(sock, F_SETLKW, &lock) != -1)
return 0;
- } while (errno == EINTR && !fail_on_intr);
+ } while (errno == EINTR
+ && ! fail_on_intr
+ && ! shutdownPending);
return -1;
socket = accept(listen_sock, (struct sockaddr *)&sa, &len);
} while (socket < 0
&& errno == EINTR
- && (! fail_on_intr && ! shutdownPending));
+ && ! fail_on_intr
+ && ! shutdownPending);
if (socket < 0) {
if (!is_reasonable_accept_errno(errno)) {