[systemd-commits] src/socket-proxy
David Strauss
straussd at kemper.freedesktop.org
Mon Oct 21 18:41:41 PDT 2013
src/socket-proxy/socket-proxyd.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
New commits:
commit f4bd42aa3c9bfbb0fa7a597b715fc3ee8f336764
Author: David Strauss <david at davidstrauss.net>
Date: Mon Oct 21 18:41:35 2013 -0700
socket-proxyd: Fix-up from previous change to avoid looping on errors.
diff --git a/src/socket-proxy/socket-proxyd.c b/src/socket-proxy/socket-proxyd.c
index 4eec79e..054a27a 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. */
More information about the systemd-commits
mailing list