+2002-07-30 Christopher Faylor <cgf@redhat.com>
+
+ * syscalls.cc (_read): Clarify debugging output.
+
2002-07-30 Christopher Faylor <cgf@redhat.com>
* fhandler.h (fhandler_base::get_r_no_interrupt): Make virtual.
DWORD wait = cfd->is_nonblocking () ? 0 : INFINITE;
/* Could block, so let user know we at least got here. */
- syscall_printf ("read (%d, %p, %d) %sblocking, sigcatchers %d", fd, ptr, len, wait ? "" : "non", sigcatchers);
+ syscall_printf ("read (%d, %p, %d) %sblocking, sigcatchers %d",
+ fd, ptr, len, wait ? "" : "non", sigcatchers);
if (wait && (!cfd->is_slow () || cfd->get_r_no_interrupt ()))
- debug_printf ("non-interruptible read\n");
+ debug_printf ("no need to call ready_for_read\n");
else if (!cfd->ready_for_read (fd, wait))
{
res = -1;
/* FIXME: This is not thread safe. We need some method to
ensure that an fd, closed in another thread, aborts I/O
operations. */
- if (!cfd.isopen())
+ if (!cfd.isopen ())
return -1;
/* Check to see if this is a background read from a "tty",
if (res > bg_eof)
{
myself->process_state |= PID_TTYIN;
- if (!cfd.isopen())
+ if (!cfd.isopen ())
return -1;
res = cfd->read (ptr, len);
myself->process_state &= ~PID_TTYIN;