projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
fix usage of locks with vfork
[musl]
/
src
/
process
/
system.c
diff --git
a/src/process/system.c
b/src/process/system.c
index
c8f2600
..
ebe207f
100644
(file)
--- a/
src/process/system.c
+++ b/
src/process/system.c
@@
-29,7
+29,8
@@
int system(const char *cmd)
__acquire_ptc();
pid = __vfork();
- __release_ptc();
+
+ if (pid) __release_ptc();
if (pid > 0) {
sigset_t new = old;