From: Carsten Haitzler (Rasterman) Date: Wed, 13 Jul 2016 23:32:16 +0000 (+0900) Subject: eina thread create - use pthread_sigmask as this can be called from thread X-Git-Tag: upstream/1.20.0~5173 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4bbe5ee058b2789adec2f6b02a5eaa02ed352b1a;p=platform%2Fupstream%2Fefl.git eina thread create - use pthread_sigmask as this can be called from thread @fix --- diff --git a/src/lib/eina/eina_thread.c b/src/lib/eina/eina_thread.c index 0244ccb..52cbc39 100644 --- a/src/lib/eina/eina_thread.c +++ b/src/lib/eina/eina_thread.c @@ -94,11 +94,11 @@ _eina_thread_create(Eina_Thread *t, int affinity, void *(*func)(void *data), voi # ifdef SIGPWR sigaddset(&newset, SIGPWR); # endif - sigprocmask(SIG_BLOCK, &newset, &oldset); + pthread_sigmask(SIG_BLOCK, &newset, &oldset); #endif err = pthread_create((pthread_t *)t, &attr, func, data); #ifndef _WIN32 - sigprocmask(SIG_SETMASK, &oldset, NULL); + pthread_sigmask(SIG_SETMASK, &oldset, NULL); #endif pthread_attr_destroy(&attr);