From: Rich Felker Date: Sun, 21 Oct 2012 17:23:03 +0000 (-0400) Subject: fix copy/paste error in popen changes that broke signals X-Git-Tag: v0.9.7~15 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=f1b23d41cff432a8d0939af427fa005b4a4f95d7;p=oweals%2Fmusl.git fix copy/paste error in popen changes that broke signals signal mask was not being restored after fork, but instead blocked again. --- 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;