X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=src%2Fthread-watch.c;h=b20b8979aa1b91e8595b4bd71e227b866402a837;hb=f195c1bda3616129bc28d33aae71f9d2dd9047ce;hp=aa22bf993205c065747a559866c4fdc706c0b6af;hpb=2c550daf4ac6a6aab7f21047c037b4dd53c57fa6;p=catta diff --git a/src/thread-watch.c b/src/thread-watch.c index aa22bf9..b20b897 100644 --- a/src/thread-watch.c +++ b/src/thread-watch.c @@ -61,11 +61,14 @@ static int poll_func(struct pollfd *ufds, unsigned int nfds, int timeout, void * static void* thread(void *userdata){ CattaThreadedPoll *p = userdata; + +#ifndef _WIN32 sigset_t mask; /* Make sure that signals are delivered to the main thread */ sigfillset(&mask); pthread_sigmask(SIG_BLOCK, &mask, NULL); +#endif pthread_mutex_lock(&p->mutex); p->retval = catta_simple_poll_loop(p->simple_poll);