s3:smbd: let smbd_server_connection_loop_once() check for select errors
authorStefan Metzmacher <metze@samba.org>
Mon, 24 Jan 2011 08:00:53 +0000 (09:00 +0100)
committerKarolin Seeger <kseeger@samba.org>
Sat, 5 Mar 2011 13:34:52 +0000 (14:34 +0100)
metze
(cherry picked from commit 0bbe7334d69bcaa476f0741e0bd9685b023a4208)
(cherry picked from commit d677921237c66e6cdf83de04e16c576a101d6493)
(cherry picked from commit 8a82e65f711e2f4ac893bd7e2365b305e1b088b8)

source3/smbd/process.c

index f7b0f4cfcef3ff1224009123653665c13c190b20..529206069fddd9a7942b93bf230cbc85a89c3cd7 100644 (file)
@@ -837,6 +837,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;
        }