mirror of
https://github.com/samba-team/samba.git
synced 2025-11-25 00:23:52 +03:00
Fix from Michael Steffens <michael_steffens@hp.com> to make signal
processing work correctly in winbindd. This is a really good patch that gives full select semantics to the Samba modified select. Jeremy.
This commit is contained in:
@@ -208,7 +208,7 @@ int read_data_outstanding(int fd, unsigned int time_out)
|
||||
timeout.tv_sec = (time_t) (time_out / 1000);
|
||||
timeout.tv_usec = (long)(1000 * (time_out % 1000));
|
||||
|
||||
selrtn = sys_select_intr(fd + 1, &fds, &timeout);
|
||||
selrtn = sys_select_intr(fd + 1, &fds, NULL, NULL, &timeout);
|
||||
|
||||
if (selrtn <= 0)
|
||||
{
|
||||
@@ -283,7 +283,7 @@ static ssize_t read_socket_with_timeout(int fd,char *buf,size_t mincnt,size_t ma
|
||||
FD_ZERO(&fds);
|
||||
FD_SET(fd,&fds);
|
||||
|
||||
selrtn = sys_select_intr(fd+1,&fds,&timeout);
|
||||
selrtn = sys_select_intr(fd+1,&fds,NULL,NULL,&timeout);
|
||||
|
||||
/* Check if error */
|
||||
if (selrtn == -1) {
|
||||
|
||||
Reference in New Issue
Block a user