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 /common.cpp | |
parent | cd3ed71137b28fa2f96774b3781cccc0eef37597 (diff) |
Use pthread_sigmask instead of sigprocmask
Diffstat (limited to 'common.cpp')
-rw-r--r-- | common.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; } |