aboutsummaryrefslogtreecommitdiff
path: root/src/libthread/exec.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libthread/exec.c')
-rw-r--r--src/libthread/exec.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libthread/exec.c b/src/libthread/exec.c
index a81490b1..43242cf0 100644
--- a/src/libthread/exec.c
+++ b/src/libthread/exec.c
@@ -75,6 +75,7 @@ _threadspawn(int fd[3], char *cmd, char *argv[])
close(p[1]);
return -1;
case 0:
+ rfork(RFNOTEG);
dup2(fd[0], 0);
dup2(fd[1], 1);
dup2(fd[2], 2);