diff options
author | ridiculousfish <corydoras@ridiculousfish.com> | 2012-07-09 14:15:55 -0700 |
---|---|---|
committer | ridiculousfish <corydoras@ridiculousfish.com> | 2012-07-09 14:15:55 -0700 |
commit | 36a91fc6ff61346006ea53162155a18fa1cc9ca2 (patch) | |
tree | 1a066a856bb9577014492036a1e62cda4a1cab4e /signal.cpp | |
parent | cd3ed71137b28fa2f96774b3781cccc0eef37597 (diff) |
Use pthread_sigmask instead of sigprocmask
Diffstat (limited to 'signal.cpp')
-rw-r--r-- | signal.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -636,7 +636,7 @@ void signal_block() if( !block_count ) { sigfillset( &chldset ); - sigprocmask(SIG_BLOCK, &chldset, 0); + VOMIT_ON_FAILURE(pthread_sigmask(SIG_BLOCK, &chldset, NULL)); } block_count++; @@ -660,7 +660,7 @@ void signal_unblock() if( !block_count ) { sigfillset( &chldset ); - sigprocmask(SIG_UNBLOCK, &chldset, 0); + VOMIT_ON_FAILURE(pthread_sigmask(SIG_UNBLOCK, &chldset, 0)); } // debug( 0, L"signal block level decreased to %d", block_count ); } |