patch-2.1.52 linux/fs/select.c

Next file: linux/fs/smbfs/Makefile
Previous file: linux/fs/romfs/inode.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.51/linux/fs/select.c linux/fs/select.c
@@ -423,7 +423,7 @@
 	wait_table.nr = 0;
 	wait_table.entry = entry;
 
-	fdcount = do_poll(nfds, fds, &wait_table);
+	fdcount = do_poll(nfds, fds, timeout ? &wait_table : NULL);
 	current->timeout = 0;
 
 	free_wait(&wait_table);

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov