if (p->fd < 0)
continue;
- p->fd_watch.data.socket_accept =
+ p->fd_watch.socket_accept =
s->accept &&
p->type == SOCKET_SOCKET &&
socket_address_can_accept(&p->address);
}
}
- if (sent) {
+ if (sent && s->control_pid > 0) {
if ((r = unit_watch_timer(UNIT(s), s->timeout_usec, &s->timer_watch)) < 0)
goto fail;
goto fail;
}
- if (w->data.socket_accept) {
+ if (w->socket_accept) {
for (;;) {
if ((cfd = accept4(fd, NULL, NULL, SOCK_NONBLOCK)) < 0) {
}
}
- log_debug("cfd=%i", cfd);
socket_enter_running(s, cfd);
return;