summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2018-01-03 13:02:39 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2018-01-03 13:05:16 +0900
commit0ccf813112d512fced60d91cc3f9edbd62cf68d0 (patch)
tree37327609ac4e44bf58b5be15724ee8f22ec58128
parenta2b24d09489930beb949fb1fbc836cc5058f561f (diff)
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...
-rw-r--r--src/lib/eina/eina_debug.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/eina/eina_debug.c b/src/lib/eina/eina_debug.c
index c3b1a24ab2..9dd1a092d5 100644
--- a/src/lib/eina/eina_debug.c
+++ b/src/lib/eina/eina_debug.c
@@ -617,11 +617,11 @@ _thread_start(Eina_Debug_Session *session)
617#ifdef SIGPWR 617#ifdef SIGPWR
618 sigaddset(&newset, SIGPWR); 618 sigaddset(&newset, SIGPWR);
619#endif 619#endif
620 sigprocmask(SIG_BLOCK, &newset, &oldset); 620 pthread_sigmask(SIG_BLOCK, &newset, &oldset);
621 621
622 err = pthread_create(&monitor_thread, NULL, _monitor, session); 622 err = pthread_create(&monitor_thread, NULL, _monitor, session);
623 623
624 sigprocmask(SIG_SETMASK, &oldset, NULL); 624 pthread_sigmask(SIG_SETMASK, &oldset, NULL);
625 if (err != 0) 625 if (err != 0)
626 { 626 {
627 e_debug("EINA DEBUG ERROR: Can't create monitor debug thread!"); 627 e_debug("EINA DEBUG ERROR: Can't create monitor debug thread!");