]> git.meshlink.io Git - catta/blobdiff - src/thread-watch.c
don't call pthread_sigmask on windows (MingW defines it as a no-op anyway)
[catta] / src / thread-watch.c
index aa22bf993205c065747a559866c4fdc706c0b6af..b20b8979aa1b91e8595b4bd71e227b866402a837 100644 (file)
@@ -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);