From a9c2ae91bede96794a36ca652c06b64766304c73 Mon Sep 17 00:00:00 2001 From: "Sven M. Hallberg" Date: Mon, 1 Sep 2014 23:53:00 +0200 Subject: [PATCH] don't call pthread_sigmask on windows (MingW defines it as a no-op anyway) --- src/thread-watch.c | 3 +++ 1 file changed, 3 insertions(+) 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); -- 2.39.2