summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/poll.cc
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2001-03-19 22:48:26 +0000
committerChristopher Faylor <me@cgf.cx>2001-03-19 22:48:26 +0000
commitb8c8fa178681ad7596e5d4217735e7ec948dc7a7 (patch)
tree3e0dbe9d695d7b5b5ab5df1823b107d72f26b9a7 /winsup/cygwin/poll.cc
parent78ace8a7e5103099f20423acbc6d03c1b5d53fdd (diff)
downloadcygnal-b8c8fa178681ad7596e5d4217735e7ec948dc7a7.tar.gz
cygnal-b8c8fa178681ad7596e5d4217735e7ec948dc7a7.tar.bz2
cygnal-b8c8fa178681ad7596e5d4217735e7ec948dc7a7.zip
* 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.cc2
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)