From cf54b006f8d3a664c40866d4509b28ccdcbd0002 Mon Sep 17 00:00:00 2001 From: etanol Date: Mon, 15 Sep 2008 21:51:56 +0200 Subject: [PATCH] Remove the error message on interrupted accept(). Solaris does not seem to respect SA_RESTART on SIGCHLD while blocked at accept(); producing a "false" error message. --- main-unix.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main-unix.c b/main-unix.c index 9743038..d99de26 100644 --- a/main-unix.c +++ b/main-unix.c @@ -115,7 +115,8 @@ int main (int argc, char **argv) cmd_sk = accept(bind_sk, (struct sockaddr *) &sai, &sai_len); if (cmd_sk == -1) { - error("Accepting incoming connection"); + if (errno != EINTR) + error("Accepting incoming connection"); continue; } -- 2.11.4.GIT