fix copy/paste error in popen changes that broke signals

signal mask was not being restored after fork, but instead blocked again.
This commit is contained in:
Rich Felker 2012-10-21 13:23:03 -04:00
parent 2d321fa062
commit f1b23d41cf
1 changed files with 1 additions and 1 deletions

View File

@ -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;