X-Git-Url: http://nsz.repo.hu/git/?p=musl;a=blobdiff_plain;f=src%2Fstdio%2Fpopen.c;h=ed20f5a1f017c4415303940e435ce61b9caff7b1;hp=5a47509ed60d6249895df3c80e9d1c4b06ca917d;hb=41d7c77d6a2e74294807d35062e4cd1d48ab72d3;hpb=599f97360389911c293e0ca4c5eb49e007377fba diff --git a/src/stdio/popen.c b/src/stdio/popen.c index 5a47509e..ed20f5a1 100644 --- a/src/stdio/popen.c +++ b/src/stdio/popen.c @@ -1,4 +1,7 @@ #include +#include +#include +#include #include "stdio_impl.h" #include "pthread_impl.h" #include "syscall.h" @@ -42,7 +45,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;