From 7ddb9971d5936cde1e5ca7c8e8c38636c81705ad Mon Sep 17 00:00:00 2001 From: Giuseppe Scrivano Date: Thu, 27 Apr 2023 22:01:33 +0200 Subject: [PATCH] ctrl: make accept4 failures fatal Signed-off-by: Giuseppe Scrivano --- src/ctrl.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/ctrl.c b/src/ctrl.c index 18db83ed..08f82246 100644 --- a/src/ctrl.c +++ b/src/ctrl.c @@ -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. */