* syscalls.cc (_read): Clarify debugging output.
This commit is contained in:
@@ -1,3 +1,7 @@
|
|||||||
|
2002-07-30 Christopher Faylor <cgf@redhat.com>
|
||||||
|
|
||||||
|
* syscalls.cc (_read): Clarify debugging output.
|
||||||
|
|
||||||
2002-07-30 Christopher Faylor <cgf@redhat.com>
|
2002-07-30 Christopher Faylor <cgf@redhat.com>
|
||||||
|
|
||||||
* fhandler.h (fhandler_base::get_r_no_interrupt): Make virtual.
|
* fhandler.h (fhandler_base::get_r_no_interrupt): Make virtual.
|
||||||
|
@@ -305,10 +305,11 @@ _read (int fd, void *ptr, size_t len)
|
|||||||
DWORD wait = cfd->is_nonblocking () ? 0 : INFINITE;
|
DWORD wait = cfd->is_nonblocking () ? 0 : INFINITE;
|
||||||
|
|
||||||
/* Could block, so let user know we at least got here. */
|
/* 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 ()))
|
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))
|
else if (!cfd->ready_for_read (fd, wait))
|
||||||
{
|
{
|
||||||
res = -1;
|
res = -1;
|
||||||
|
Reference in New Issue
Block a user