eina thread create - use pthread_sigmask as this can be called from thread

@fix
This commit is contained in:
Carsten Haitzler 2016-07-14 08:32:16 +09:00
parent 7bb8afe4f9
commit 4bbe5ee058
1 changed files with 2 additions and 2 deletions

View File

@ -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);