#include <sys/un.h>
#include <fcntl.h>
+#include <systemd/sd-daemon.h>
+
#include "util.h"
#include "log.h"
#include "list.h"
-#include "sd-daemon.h"
#include "tcpwrap.h"
#include "def.h"
writev(console, iovec, 4);
}
-
}
return 0;
return -errno;
}
-
if (l == 0)
return 0;
int r;
assert(s);
+ assert(server_fd >= 0);
- if ((fd = accept4(server_fd, NULL, NULL, SOCK_NONBLOCK|SOCK_CLOEXEC)) < 0)
+ fd = accept4(server_fd, NULL, NULL, SOCK_NONBLOCK|SOCK_CLOEXEC);
+ if (fd < 0)
return -errno;
if (s->n_streams >= STREAMS_MAX) {