* syscalls.cc (_read): Use more lightweight method for determining if read has

been interrupted by a signal.
This commit is contained in:
Christopher Faylor 2001-01-14 19:08:30 +00:00
parent b0c8c95b1e
commit a3ec080b35
2 changed files with 6 additions and 2 deletions

View File

@ -1,3 +1,8 @@
Sun Jan 14 14:07:50 2001 Christopher Faylor <cgf@cygnus.com>
* syscalls.cc (_read): Use more lightweight method for determining if
read has been interrupted by a signal.
Fri Jan 12 00:35:15 2001 Christopher Faylor <cgf@cygnus.com>
* debug.h: Add regparm attributes to some functions.

View File

@ -259,8 +259,7 @@ beg:
}
out:
if (res < 0 && WaitForSingleObject (signal_arrived, 0) == WAIT_OBJECT_0 &&
call_signal_handler ())
if (res < 0 && get_errno () == EINTR && call_signal_handler ())
goto beg;
syscall_printf ("%d = read (%d<%s>, %p, %d), bin %d, errno %d", res, fd, fh->get_name (),
ptr, len, fh->get_r_binary (), get_errno ());