diff options
author | Lennart Poettering <lennart@poettering.net> | 2012-09-18 01:16:23 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2012-09-18 01:16:23 +0200 |
commit | b14eda963c698aa89fac1d91501d572ec644cc2f (patch) | |
tree | cb2eb4a6ded34b0037018ae89886de41c69ce10b /src/core/socket.c | |
parent | 178cc7700c23ac088cd7190d7854282075028d91 (diff) |
logind: split up inhibit acquire policy
Diffstat (limited to 'src/core/socket.c')
-rw-r--r-- | src/core/socket.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/socket.c b/src/core/socket.c index f975a4333d..f346030f0c 100644 --- a/src/core/socket.c +++ b/src/core/socket.c @@ -1850,7 +1850,8 @@ static void socket_fd_event(Unit *u, int fd, uint32_t events, Watch *w) { if (w->socket_accept) { for (;;) { - if ((cfd = accept4(fd, NULL, NULL, SOCK_NONBLOCK)) < 0) { + cfd = accept4(fd, NULL, NULL, SOCK_NONBLOCK); + if (cfd < 0) { if (errno == EINTR) continue; |