mirror of
https://github.com/samba-team/samba.git
synced 2025-01-13 13:18:06 +03:00
Always increment even if the read fails (otherwise we spin if we hit the kernel bug...).
Jeremy
This commit is contained in:
parent
c3930c6bdb
commit
d388dfa53b
@ -98,7 +98,10 @@ int sys_select(int maxfd, fd_set *fds,struct timeval *tval)
|
||||
|
||||
while (pipe_written != pipe_read) {
|
||||
char c;
|
||||
if (read(select_pipe[0], &c, 1) == 1) pipe_read++;
|
||||
/* Due to the linux kernel bug in 2.0.x, we
|
||||
* always increment here even if the read failed... */
|
||||
read(select_pipe[0], &c, 1);
|
||||
pipe_read++;
|
||||
}
|
||||
|
||||
errno = saved_errno;
|
||||
|
Loading…
Reference in New Issue
Block a user