diff options
author | Christopher Faylor <me@cgf.cx> | 2003-08-19 04:10:42 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2003-08-19 04:10:42 +0000 |
commit | 05cb7b17cb29a2ac4dd3b1f1bc49073ccc81e89b (patch) | |
tree | 9ecc4cfb6c783843e77b6068b7fc8c734c40c639 /winsup/cygwin/syscalls.cc | |
parent | 755f575f155dbbb0496b9d94363e8177312b49cd (diff) | |
download | cygnal-05cb7b17cb29a2ac4dd3b1f1bc49073ccc81e89b.tar.gz cygnal-05cb7b17cb29a2ac4dd3b1f1bc49073ccc81e89b.tar.bz2 cygnal-05cb7b17cb29a2ac4dd3b1f1bc49073ccc81e89b.zip |
Throughout, eliminate argument to sig_dispatch_pending.
* exceptions.cc (setup_handler): Move non-interruptible condition handling
(back) to wait_sig (as suggested by Pierre Humblet).
(set_process_mask): Don't worry about calling sig_dispatch_pending from
sigthread since it is detected in the function anyway.
(sig_handle): Eliminate thisproc arg. Don't call sig_dispatch_pending on
SIGCONT since that should happen automatically.
* sigproc.cc (sig_dispatch_pending): Eliminate justwake argument. Just return
when called from sigthread.
(wait_sig): Change some variables to bool. Change inner while to an if. Move
uninterruptible signal handling here.
(sigproc_terminate): Don't call sig_dispatch_pending. Just increment semaphore
on exit.
* speclib: Use slightly different (but still flawed) method for determining
symbols to extract from libraries.
Diffstat (limited to 'winsup/cygwin/syscalls.cc')
-rw-r--r-- | winsup/cygwin/syscalls.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/winsup/cygwin/syscalls.cc b/winsup/cygwin/syscalls.cc index f2e79760e..dedab012e 100644 --- a/winsup/cygwin/syscalls.cc +++ b/winsup/cygwin/syscalls.cc @@ -369,7 +369,7 @@ readv (int fd, const struct iovec *const iov, const int iovcnt) while (1) { - sig_dispatch_pending (0); + sig_dispatch_pending (); sigframe thisframe (mainthread); cygheap_fdget cfd (fd); @@ -441,7 +441,7 @@ extern "C" ssize_t writev (const int fd, const struct iovec *const iov, const int iovcnt) { int res = -1; - sig_dispatch_pending (0); + sig_dispatch_pending (); const ssize_t tot = check_iovec_for_write (iov, iovcnt); sigframe thisframe (mainthread); @@ -497,7 +497,7 @@ open (const char *unix_path, int flags, ...) int res = -1; va_list ap; mode_t mode = 0; - sig_dispatch_pending (0); + sig_dispatch_pending (); sigframe thisframe (mainthread); syscall_printf ("open (%s, %p)", unix_path, flags); |