X-Git-Url: http://git.meshlink.io/?p=catta;a=blobdiff_plain;f=src%2Fthread-watch.c;h=b20b8979aa1b91e8595b4bd71e227b866402a837;hp=aa22bf993205c065747a559866c4fdc706c0b6af;hb=a9c2ae91bede96794a36ca652c06b64766304c73;hpb=b9cafcae35680b33ba1e0d6da08a355c5b62faab 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);