eina debug - use pthread _sigmask instead of sigprocmask like elsewhere

elsewhere in efl we moved to pthread_sigmask but eina debug didn't, so
mirror the changes here too. at this point in time when we are
initting eina debug this shouldnt really matter much as we're single
threaded until this pthread_Create is called. after that tough...
we're not. signals + threads is a nightmare though... horrible
horrible...
This commit is contained in:
Carsten Haitzler 2018-01-03 13:02:39 +09:00
parent a2b24d0948
commit 0ccf813112
1 changed files with 2 additions and 2 deletions

View File

@ -617,11 +617,11 @@ _thread_start(Eina_Debug_Session *session)
#ifdef SIGPWR
sigaddset(&newset, SIGPWR);
#endif
sigprocmask(SIG_BLOCK, &newset, &oldset);
pthread_sigmask(SIG_BLOCK, &newset, &oldset);
err = pthread_create(&monitor_thread, NULL, _monitor, session);
sigprocmask(SIG_SETMASK, &oldset, NULL);
pthread_sigmask(SIG_SETMASK, &oldset, NULL);
if (err != 0)
{
e_debug("EINA DEBUG ERROR: Can't create monitor debug thread!");