diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2014-08-19 19:25:54 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2014-08-19 19:25:54 +0000 |
commit | 905a851912b3f01baa8c797fa6e84081c84b2390 (patch) | |
tree | 33b50e1500e86f68fbdb689199af5ff498765206 /winsup/cygwin/signal.cc | |
parent | 59c3d5a1a4c0d8ee4f1da2c9e449ed9ab4edd4b6 (diff) | |
download | newlib-905a851912b3f01baa8c797fa6e84081c84b2390.zip newlib-905a851912b3f01baa8c797fa6e84081c84b2390.tar.gz newlib-905a851912b3f01baa8c797fa6e84081c84b2390.tar.bz2 |
* dir.cc (dirfd): Per POSIX, return EINVAL on invalid directory stream.
(telldir): Per POSIX, return -1 and set errno to EBADF, rather than
just returning 0, on invalid directory stream.
* signal.cc (sigwaitinfo): Return -1, not EFAULT, when SEGV was catched.
Diffstat (limited to 'winsup/cygwin/signal.cc')
-rw-r--r-- | winsup/cygwin/signal.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/cygwin/signal.cc b/winsup/cygwin/signal.cc index dc01337..3ea8af5 100644 --- a/winsup/cygwin/signal.cc +++ b/winsup/cygwin/signal.cc @@ -564,7 +564,7 @@ sigwaitinfo (const sigset_t *set, siginfo_t *info) myfault efault; if (efault.faulted (EFAULT)) - return EFAULT; + return -1; set_signal_mask (_my_tls.sigwait_mask, *set); sig_dispatch_pending (true); |