X-Git-Url: http://nsz.repo.hu/git/?p=musl;a=blobdiff_plain;f=src%2Fstdio%2Fpopen.c;h=ca3cdf9d5e1e75ec0d1a8561c22b353455677585;hp=5a47509ed60d6249895df3c80e9d1c4b06ca917d;hb=f1b23d41cff432a8d0939af427fa005b4a4f95d7;hpb=2d321fa0627caa62272fcff8fb5303f1a5cbce39;ds=sidebyside 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;