diff options
author | Carsten Haitzler (Rasterman) <raster@rasterman.com> | 2016-07-14 08:32:16 +0900 |
---|---|---|
committer | Carsten Haitzler (Rasterman) <raster@rasterman.com> | 2016-07-14 08:42:24 +0900 |
commit | 12c061e336d96b1bb03a54abc4e6d2f3e17034bf (patch) | |
tree | 1eccbbbbe6936bb959e841155065d52f12afb8e2 | |
parent | 940f61536cd5990fd34e6b39e8b10fb55586a151 (diff) | |
download | efl-12c061e336d96b1bb03a54abc4e6d2f3e17034bf.tar.gz |
eina thread create - use pthread_sigmask as this can be called from thread
@fix
-rw-r--r-- | src/lib/eina/eina_thread.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/eina/eina_thread.c b/src/lib/eina/eina_thread.c index eb1a13fcc4..deabf01ffe 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); |