OSDN Git Service
(root)
/
android-x86
/
external-musl-libc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2d321fa
)
fix copy/paste error in popen changes that broke signals
author
Rich Felker
<dalias@aerifal.cx>
Sun, 21 Oct 2012 17:23:03 +0000
(13:23 -0400)
committer
Rich Felker
<dalias@aerifal.cx>
Sun, 21 Oct 2012 17:23:03 +0000
(13:23 -0400)
signal mask was not being restored after fork, but instead blocked again.
src/stdio/popen.c
patch
|
blob
|
history
diff --git
a/src/stdio/popen.c
b/src/stdio/popen.c
index
5a47509
..
ca3cdf9
100644
(file)
--- 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;