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/process/system.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/process/system.c')
-rw-r--r--src/process/system.c 3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/process/system.c b/src/process/system.c
index ebe207f5..0cc8b810 100644
--- a/src/process/system.c
+++ b/src/process/system.c
@@ -13,6 +13,7 @@ weak_alias(dummy_0, __acquire_ptc);
weak_alias(dummy_0, __release_ptc);
pid_t __vfork(void);
+void __testcancel(void);
int system(const char *cmd)
{
@@ -21,6 +22,8 @@ int system(const char *cmd)
struct sigaction sa = { .sa_handler = SIG_IGN }, oldint, oldquit;
int status = -1, i;
+ __testcancel();
+
if (!cmd) return 1;
sigaction(SIGINT, &sa, &oldint);
generated by cgit v1.2.1 (git 2.18.0) at 2025年09月15日 11:46:54 +0000

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