summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2001-01-14 19:08:30 +0000
committerChristopher Faylor <me@cgf.cx>2001-01-14 19:08:30 +0000
commita3ec080b35b49d52c456fdc2342e8a5290ab307f (patch)
tree39f6400b4c5815af6d1063ba3edaab3c5314ef0b
parentb0c8c95b1e09bc46212084115921f8b4f273ee2a (diff)
downloadcygnal-a3ec080b35b49d52c456fdc2342e8a5290ab307f.tar.gz
cygnal-a3ec080b35b49d52c456fdc2342e8a5290ab307f.tar.bz2
cygnal-a3ec080b35b49d52c456fdc2342e8a5290ab307f.zip
* syscalls.cc (_read): Use more lightweight method for determining if read has
been interrupted by a signal.
-rw-r--r--winsup/cygwin/ChangeLog5
-rw-r--r--winsup/cygwin/syscalls.cc3
2 files changed, 6 insertions, 2 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog
index 506f5229c..8de1b9628 100644
--- a/winsup/cygwin/ChangeLog
+++ b/winsup/cygwin/ChangeLog
@@ -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.
diff --git a/winsup/cygwin/syscalls.cc b/winsup/cygwin/syscalls.cc
index 0f6834422..0e6b631fa 100644
--- a/winsup/cygwin/syscalls.cc
+++ b/winsup/cygwin/syscalls.cc
@@ -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 ());