* 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.
This commit is contained in:
Christopher Faylor
2001-03-19 22:48:26 +00:00
parent 78ace8a7e5
commit b8c8fa1786
4 changed files with 14 additions and 5 deletions

View File

@@ -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)