diff options
author | Rich Felker <dalias@aerifal.cx> | 2012-10-21 13:23:03 -0400 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2012-10-21 13:23:03 -0400 |
commit | f1b23d41cff432a8d0939af427fa005b4a4f95d7 (patch) | |
tree | 128291ff20e41a341625c0fa72180890e7068207 | |
parent | 2d321fa0627caa62272fcff8fb5303f1a5cbce39 (diff) | |
download | musl-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.c | 2 |
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; |