diff options
author | Christopher Faylor <me@cgf.cx> | 2000-10-18 04:53:37 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2000-10-18 04:53:37 +0000 |
commit | ac944e37d029c8bc9e38a51be76fece99a2826f1 (patch) | |
tree | 26faad099a731a19876502ed4b278a6bd43bcda7 /winsup/cygwin/syscalls.cc | |
parent | 3f7bd531155175f7c8158b68fcaf9e1aa98f9c1d (diff) | |
download | cygnal-ac944e37d029c8bc9e38a51be76fece99a2826f1.tar.gz cygnal-ac944e37d029c8bc9e38a51be76fece99a2826f1.tar.bz2 cygnal-ac944e37d029c8bc9e38a51be76fece99a2826f1.zip |
* exceptions.cc (call_handler): Make signal pending if sigsave.sig is still
active.
* syscalls.cc (_read): Don't clear errno.
* sigproc.cc (wait_sig): Don't scan the waiting process list after a SIGCHLD if
there are no zombies to reap.
* winsup.h: Use __builtin_strcmp.
* environ.cc (posify): Don't initialize len unless it is required
(from DJ Delorie <dj@redhat.com>).
Diffstat (limited to 'winsup/cygwin/syscalls.cc')
-rw-r--r-- | winsup/cygwin/syscalls.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/winsup/cygwin/syscalls.cc b/winsup/cygwin/syscalls.cc index a9b926b97..adbe286a7 100644 --- a/winsup/cygwin/syscalls.cc +++ b/winsup/cygwin/syscalls.cc @@ -212,7 +212,7 @@ _read (int fd, void *ptr, size_t len) return -1; } - set_sig_errno (0); + // set_sig_errno (0); fhandler_base *fh = fdtab[fd]; DWORD wait = (fh->get_flags () & (O_NONBLOCK | OLD_O_NDELAY)) ? 0 : INFINITE; @@ -225,7 +225,7 @@ _read (int fd, void *ptr, size_t len) else if (!fh->ready_for_read (fd, wait, 0)) { if (!wait) - set_sig_errno (EAGAIN); + set_sig_errno (EAGAIN); /* Don't really need 'set_sig_errno' here, but... */ else set_sig_errno (EINTR); res = -1; |