musl - musl - an implementation of the standard library for Linux-based systems

index : musl
musl - an implementation of the standard library for Linux-based systems
summary refs log tree commit diff
path: root/src/stdio/popen.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/stdio/popen.c')
-rw-r--r--src/stdio/popen.c 2
1 files changed, 1 insertions, 1 deletions
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;
generated by cgit v1.2.1 (git 2.18.0) at 2025年09月10日 09:27:51 +0000

AltStyle によって変換されたページ (->オリジナル) /