Skip to content

Commit

Permalink
ctrl: make accept4 failures fatal
Browse files Browse the repository at this point in the history
Signed-off-by: Giuseppe Scrivano <[email protected]>
  • Loading branch information
giuseppe committed Apr 27, 2023
1 parent b35698b commit 7ddb997
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/ctrl.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,7 @@ gboolean terminal_accept_cb(int fd, G_GNUC_UNUSED GIOCondition condition, G_GNUC
connfd = accept4(fd, NULL, NULL, SOCK_CLOEXEC);
} while (connfd < 0 && errno == EINTR);
if (connfd < 0) {
nwarn("Failed to accept console-socket connection");
return G_SOURCE_CONTINUE;
pexit("Failed to accept console-socket connection");
}

/* Not accepting anything else. */
Expand Down

0 comments on commit 7ddb997

Please sign in to comment.