diff options
author | Andreas Schneider <asn@samba.org> | 2011-03-03 15:06:45 +0100 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2011-03-08 11:41:30 +0100 |
commit | 9dc27cb5b24ea5c25cdd29d9334b55ed5617168c (patch) | |
tree | 9ed612986a101e34728e7f4d4673a5d34ed759d5 /source3/rpc_server | |
parent | ce491edcad120c5c9de4260ac60a2ec3b319161a (diff) | |
download | samba-9dc27cb5b24ea5c25cdd29d9334b55ed5617168c.tar.gz samba-9dc27cb5b24ea5c25cdd29d9334b55ed5617168c.tar.bz2 samba-9dc27cb5b24ea5c25cdd29d9334b55ed5617168c.zip |
s3-rpc_server: Fixed the accept() for named_pipe_listener.
Signed-off-by: Günther Deschner <gd@samba.org>
Diffstat (limited to 'source3/rpc_server')
-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; } |