summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2011-01-24 09:00:53 +0100
committerStefan Metzmacher <metze@samba.org>2011-01-31 16:16:09 +0100
commit0bbe7334d69bcaa476f0741e0bd9685b023a4208 (patch)
tree34beb77e5127569817330a8e135a0d52a04b329d /source3/smbd
parent1f2be10ebf4cc06e3b7aac41ea35bfc4a41ce828 (diff)
downloadsamba-0bbe7334d69bcaa476f0741e0bd9685b023a4208.tar.gz
samba-0bbe7334d69bcaa476f0741e0bd9685b023a4208.tar.bz2
samba-0bbe7334d69bcaa476f0741e0bd9685b023a4208.zip
s3:smbd: let smbd_server_connection_loop_once() check for select errors
metze
Diffstat (limited to 'source3/smbd')
-rw-r--r--source3/smbd/process.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source3/smbd/process.c b/source3/smbd/process.c
index f5cc43e86e..75bd770878 100644
--- a/source3/smbd/process.c
+++ b/source3/smbd/process.c
@@ -1001,6 +1001,10 @@ static NTSTATUS smbd_server_connection_loop_once(struct smbd_server_connection *
errno = sav;
}
+ if (selrtn == -1 && errno != EINTR) {
+ return map_nt_error_from_unix(errno);
+ }
+
if (run_events(smbd_event_context(), selrtn, &r_fds, &w_fds)) {
return NT_STATUS_RETRY;
}