From: Sven M. Hallberg Date: Mon, 1 Sep 2014 21:53:00 +0000 (+0200) Subject: don't call pthread_sigmask on windows (MingW defines it as a no-op anyway) X-Git-Url: http://git.meshlink.io/?p=catta;a=commitdiff_plain;h=a9c2ae91bede96794a36ca652c06b64766304c73 don't call pthread_sigmask on windows (MingW defines it as a no-op anyway) --- 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);