summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2012-10-21 13:23:03 -0400
committerRich Felker <dalias@aerifal.cx>2012-10-21 13:23:03 -0400
commitf1b23d41cff432a8d0939af427fa005b4a4f95d7 (patch)
tree128291ff20e41a341625c0fa72180890e7068207
parent2d321fa0627caa62272fcff8fb5303f1a5cbce39 (diff)
downloadmusl-f1b23d41cff432a8d0939af427fa005b4a4f95d7.tar.gz
musl-f1b23d41cff432a8d0939af427fa005b4a4f95d7.tar.bz2
musl-f1b23d41cff432a8d0939af427fa005b4a4f95d7.tar.xz
musl-f1b23d41cff432a8d0939af427fa005b4a4f95d7.zip
fix copy/paste error in popen changes that broke signals
signal mask was not being restored after fork, but instead blocked again.
-rw-r--r--src/stdio/popen.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/stdio/popen.c b/src/stdio/popen.c
index 5a47509e..ca3cdf9d 100644
--- a/src/stdio/popen.c
+++ b/src/stdio/popen.c
@@ -42,7 +42,7 @@ FILE *popen(const char *cmd, const char *mode)
if (pid) {
__release_ptc();
__syscall(SYS_close, p[1-op]);
- sigprocmask(SIG_BLOCK, SIGALL_SET, &old);
+ sigprocmask(SIG_SETMASK, &old, 0);
if (pid < 0) {
fclose(f);
return 0;