From b85946cc317af6334abe616a0ddc8a1a1435131c Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Mon, 12 May 2014 22:03:09 +1000 Subject: [PATCH] Failure to accept in connector should be a fatal error --- src/connector.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/connector.c b/src/connector.c index 2990d997..95c3d27c 100644 --- a/src/connector.c +++ b/src/connector.c @@ -450,8 +450,8 @@ retry: if (interrupted()) goto retry; LOGERR("Failed to accept on connector socket, retrying in 5s"); - sleep(5); - goto retry; + ret = 1; + goto out; } buf = recv_unix_msg(sockd);