mirror of
https://github.com/samba-team/samba.git
synced 2025-11-22 16:23:49 +03:00
Linux kernel oplocks now seem to work, but need a _lot_ of testing
I had to modify sys_select() to not loop on EINTR. I added a wrapper called sys_select_intr() which gives the old behaviour.
This commit is contained in:
@@ -967,7 +967,7 @@ struct packet_struct *receive_packet(int fd,enum packet_type type,int t)
|
||||
timeout.tv_sec = t/1000;
|
||||
timeout.tv_usec = 1000*(t%1000);
|
||||
|
||||
if ((ret = sys_select(fd+1,&fds,&timeout)) == -1) {
|
||||
if ((ret = sys_select_intr(fd+1,&fds,&timeout)) == -1) {
|
||||
/* errno should be EBADF or EINVAL. */
|
||||
DEBUG(0,("select returned -1, errno = %s (%d)\n", strerror(errno), errno));
|
||||
return NULL;
|
||||
|
||||
Reference in New Issue
Block a user