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)
downloadefl-0ccf813112d512fced60d91cc3f9edbd62cf68d0.tar.gz
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)
#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!");