diff options
-rw-r--r-- | source3/rpc_server/rpc_server.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/source3/rpc_server/rpc_server.c b/source3/rpc_server/rpc_server.c index bf9952e215..47e223c00a 100644 --- a/source3/rpc_server/rpc_server.c +++ b/source3/rpc_server/rpc_server.c @@ -317,15 +317,14 @@ static void named_pipe_listener(struct tevent_context *ev, len = sizeof(sunaddr); - while (sd == -1) { - sd = accept(state->fd, - (struct sockaddr *)(void *)&sunaddr, &len); - if (errno != EINTR) break; - } + sd = accept(state->fd, + (struct sockaddr *)(void *)&sunaddr, &len); if (sd == -1) { - DEBUG(6, ("Failed to get a valid socket [%s]\n", - strerror(errno))); + if (errno != EINTR) { + DEBUG(6, ("Failed to get a valid socket [%s]\n", + strerror(errno))); + } return; } |