diff options
Diffstat (limited to 'source/client')
-rw-r--r-- | source/client/client.c | 2 | ||||
-rw-r--r-- | source/client/smbmount.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/source/client/client.c b/source/client/client.c index 396028358d5..9a4806b7a2f 100644 --- a/source/client/client.c +++ b/source/client/client.c @@ -3333,7 +3333,7 @@ static void wait_keyboard(char *buffer) timeout.tv_sec = 20; timeout.tv_usec = 0; - selrtn = sys_select(&fds,&timeout); + selrtn = sys_select(MAX(Client,fileno(stdin))+1,&fds,&timeout); if (FD_ISSET(fileno(stdin),&fds)) return; diff --git a/source/client/smbmount.c b/source/client/smbmount.c index bd14b121e63..9bc7cba6f65 100644 --- a/source/client/smbmount.c +++ b/source/client/smbmount.c @@ -463,7 +463,7 @@ static void wait_keyboard(char *buffer) timeout.tv_sec = 20; timeout.tv_usec = 0; - selrtn = sys_select(&fds,&timeout); + selrtn = sys_select(MAX(Client,fileno(stdin))+1,&fds,&timeout); if (FD_ISSET(fileno(stdin),&fds)) return; |