summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source3/rpc_server/rpc_server.c14
1 files changed, 5 insertions, 9 deletions
diff --git a/source3/rpc_server/rpc_server.c b/source3/rpc_server/rpc_server.c
index 47e223c00a..2168f67909 100644
--- a/source3/rpc_server/rpc_server.c
+++ b/source3/rpc_server/rpc_server.c
@@ -796,16 +796,12 @@ static void dcerpc_ncacn_tcpip_listener(struct tevent_context *ev,
int s = -1;
int rc;
- while (s == -1) {
- s = accept(state->fd, (struct sockaddr *)(void *) &addr, &in_addrlen);
- if (s == -1 && errno != EINTR) {
- break;
- }
- }
-
+ s = accept(state->fd, (struct sockaddr *)(void *) &addr, &in_addrlen);
if (s == -1) {
- DEBUG(0,("tcpip_listener accept: %s\n",
- strerror(errno)));
+ if (errno != EINTR) {
+ DEBUG(0,("tcpip_listener accept: %s\n",
+ strerror(errno)));
+ }
return;
}