diff options
author | Volker Lendecke <vl@samba.org> | 2011-05-03 17:04:06 +0200 |
---|---|---|
committer | Volker Lendecke <vlendec@samba.org> | 2011-05-03 18:06:48 +0200 |
commit | 023260487517e835edd7f16c8485f9e84cf44667 (patch) | |
tree | 2c0610ff4ad03f1623b23d048ba56a1af8da13f1 /source3/smbd | |
parent | 9c48345e32c9aebd93c67103ea6984d74f2061b4 (diff) | |
download | samba-023260487517e835edd7f16c8485f9e84cf44667.tar.gz samba-023260487517e835edd7f16c8485f9e84cf44667.tar.bz2 samba-023260487517e835edd7f16c8485f9e84cf44667.zip |
s3: Handle EINTR from sys_poll correctly
Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Tue May 3 18:06:48 CEST 2011 on sn-devel-104
Diffstat (limited to 'source3/smbd')
-rw-r--r-- | source3/smbd/process.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/source3/smbd/process.c b/source3/smbd/process.c index c17ff7b5ac..169c459534 100644 --- a/source3/smbd/process.c +++ b/source3/smbd/process.c @@ -1005,7 +1005,10 @@ static NTSTATUS smbd_server_connection_loop_once(struct smbd_server_connection * errno = sav; } - if (ret == -1 && errno != EINTR) { + if (ret == -1) { + if (errno == EINTR) { + return NT_STATUS_RETRY; + } return map_nt_error_from_unix(errno); } |