aboutsummaryrefslogtreecommitdiffhomepage
path: root/common.cpp
diff options
context:
space:
mode:
authorGravatar ridiculousfish <corydoras@ridiculousfish.com>2012-07-09 14:15:55 -0700
committerGravatar ridiculousfish <corydoras@ridiculousfish.com>2012-07-09 14:15:55 -0700
commit36a91fc6ff61346006ea53162155a18fa1cc9ca2 (patch)
tree1a066a856bb9577014492036a1e62cda4a1cab4e /common.cpp
parentcd3ed71137b28fa2f96774b3781cccc0eef37597 (diff)
Use pthread_sigmask instead of sigprocmask
Diffstat (limited to 'common.cpp')
-rw-r--r--common.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/common.cpp b/common.cpp
index 437a022e..cf77d1e2 100644
--- a/common.cpp
+++ b/common.cpp
@@ -623,9 +623,9 @@ int read_blocked(int fd, void *buf, size_t count)
sigemptyset( &chldset );
sigaddset( &chldset, SIGCHLD );
- sigprocmask(SIG_BLOCK, &chldset, &oldset);
+ VOMIT_ON_FAILURE(pthread_sigmask(SIG_BLOCK, &chldset, &oldset));
res = read( fd, buf, count );
- sigprocmask( SIG_SETMASK, &oldset, 0 );
+ VOMIT_ON_FAILURE(pthread_sigmask(SIG_SETMASK, &oldset, NULL));
return res;
}