projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix alignment logic in strlcpy
[musl]
/
src
/
process
/
system.c
diff --git
a/src/process/system.c
b/src/process/system.c
index
ebe207f
..
0cc8b81
100644
(file)
--- 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);
weak_alias(dummy_0, __release_ptc);
pid_t __vfork(void);
+void __testcancel(void);
int system(const char *cmd)
{
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;
struct sigaction sa = { .sa_handler = SIG_IGN }, oldint, oldquit;
int status = -1, i;
+ __testcancel();
+
if (!cmd) return 1;
sigaction(SIGINT, &sa, &oldint);
if (!cmd) return 1;
sigaction(SIGINT, &sa, &oldint);