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