* 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:
@@ -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)
|
||||
|
Reference in New Issue
Block a user