diff options
author | Christopher Faylor <me@cgf.cx> | 2001-03-20 01:48:26 +0300 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2001-03-20 01:48:26 +0300 |
commit | b8c8fa178681ad7596e5d4217735e7ec948dc7a7 (patch) | |
tree | 3e0dbe9d695d7b5b5ab5df1823b107d72f26b9a7 /winsup/cygwin/poll.cc | |
parent | 78ace8a7e5103099f20423acbc6d03c1b5d53fdd (diff) |
* exceptions.cc (interruptible): Update debugging output.
(setup_handler): Ensure that wait_sig loop wakes up when we punt on sending a
signal.
* poll.cc (poll): Add signal guard here.
Diffstat (limited to 'winsup/cygwin/poll.cc')
-rw-r--r-- | winsup/cygwin/poll.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/winsup/cygwin/poll.cc b/winsup/cygwin/poll.cc index d55b2af32..f3c9ef6d7 100644 --- a/winsup/cygwin/poll.cc +++ b/winsup/cygwin/poll.cc @@ -15,6 +15,7 @@ #include "fhandler.h" #include "dtable.h" #include "cygerrno.h" +#include "sigproc.h" extern "C" int @@ -23,6 +24,7 @@ poll (struct pollfd *fds, unsigned int nfds, int timeout) int max_fd = 0; fd_set *open_fds, *read_fds, *write_fds, *except_fds; struct timeval tv = { timeout / 1000, (timeout % 1000) * 1000 }; + sigframe thisframe (mainthread); for (unsigned int i = 0; i < nfds; ++i) if (fds[i].fd > max_fd) |