summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/syscalls.cc
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2001-11-04 02:31:58 +0000
committerChristopher Faylor <me@cgf.cx>2001-11-04 02:31:58 +0000
commit476dfb657b1b66c1c98484f047749e4be1a5b14d (patch)
treed06213be681ef2bf6046b4d3295c44ac059a4a7b /winsup/cygwin/syscalls.cc
parentf41d24a14d5672c152938abd44226108d236aca1 (diff)
downloadcygnal-476dfb657b1b66c1c98484f047749e4be1a5b14d.tar.gz
cygnal-476dfb657b1b66c1c98484f047749e4be1a5b14d.tar.bz2
cygnal-476dfb657b1b66c1c98484f047749e4be1a5b14d.zip
* fhandler.h (fhandler_base::ready_for_read): Remove unused argument.
(fhandler_tty_slave::ready_for_read): Ditto. (select_record): Remove poll, initialize peek. * select.cc: Remove all poll functions, throughout. Change second argument of peek_* functions to 'bool' throughout. Specifically initialize *_ready variables throughout. (select_stuff::poll): Subsume previous poll functionality. (peek_pipe): Don't grab guard mutex when in select loop. select()/read() is racy by design so there is no need to worry about a race in select(). (fhandler_base::ready_for_read): Remove unused argument. (fhandler_tty_slave::ready_for_read): Ditto. * syscalls.cc (_read): Eliminate third argument in ready_for_read call.
Diffstat (limited to 'winsup/cygwin/syscalls.cc')
-rw-r--r--winsup/cygwin/syscalls.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/cygwin/syscalls.cc b/winsup/cygwin/syscalls.cc
index b433c3dde..4baf47294 100644
--- a/winsup/cygwin/syscalls.cc
+++ b/winsup/cygwin/syscalls.cc
@@ -312,7 +312,7 @@ _read (int fd, void *ptr, size_t len)
if (wait && (!cfd->is_slow () || cfd->get_r_no_interrupt ()))
debug_printf ("non-interruptible read\n");
- else if (!cfd->ready_for_read (fd, wait, 0))
+ else if (!cfd->ready_for_read (fd, wait))
{
res = -1;
goto out;