2144
2155
/* Set Close-on-exec & non-blocking */
2145
2156
if (fcntl(local_socket, F_SETFD, 1))
2146
2157
DEBUGLOG("setting CLOEXEC on local_socket failed: %s\n", strerror(errno));
2147
fcntl(local_socket, F_SETFL, fcntl(local_socket, F_GETFL, 0) | O_NONBLOCK);
2158
if (fcntl(local_socket, F_SETFL, fcntl(local_socket, F_GETFL, 0) | O_NONBLOCK))
2153
2162
if (bind(local_socket, (struct sockaddr *) &sockaddr, sizeof(sockaddr))) {
2154
2163
log_error("can't bind local socket: %m");