summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDavid Strauss <david@davidstrauss.net>2013-10-21 18:41:35 -0700
committerDavid Strauss <david@davidstrauss.net>2013-10-21 18:41:35 -0700
commitf4bd42aa3c9bfbb0fa7a597b715fc3ee8f336764 (patch)
tree2593a12605d162d337be457a381a9e84876cb9af /src
parent9bcbce4201afada1c0ad8ada0cbfbbf58a52a6a7 (diff)
socket-proxyd: Fix-up from previous change to avoid looping on errors.
Diffstat (limited to 'src')
-rw-r--r--src/socket-proxy/socket-proxyd.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/socket-proxy/socket-proxyd.c b/src/socket-proxy/socket-proxyd.c
index 4eec79ecb5..054a27a71b 100644
--- a/src/socket-proxy/socket-proxyd.c
+++ b/src/socket-proxy/socket-proxyd.c
@@ -442,8 +442,10 @@ static int accept_cb(sd_event_source *s, int fd, uint32_t revents, void *userdat
r = do_accept(e, p, fd);
if (r == -EAGAIN || r == -EWOULDBLOCK)
break;
- if (r < 0)
+ if (r < 0) {
log_error("Error %d while trying to accept: %s", r, strerror(-r));
+ break;
+ }
}
/* Re-enable the watcher. */