]> git.meshlink.io Git - catta/commitdiff
don't call pthread_sigmask on windows (MingW defines it as a no-op anyway)
authorSven M. Hallberg <pesco@khjk.org>
Mon, 1 Sep 2014 21:53:00 +0000 (23:53 +0200)
committerSven M. Hallberg <pesco@khjk.org>
Mon, 1 Sep 2014 21:53:00 +0000 (23:53 +0200)
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);