aboutsummaryrefslogtreecommitdiff
path: root/toys/other/setsid.c
diff options
context:
space:
mode:
Diffstat (limited to 'toys/other/setsid.c')
-rw-r--r--toys/other/setsid.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/toys/other/setsid.c b/toys/other/setsid.c
index 59a1d78f..83db044d 100644
--- a/toys/other/setsid.c
+++ b/toys/other/setsid.c
@@ -19,9 +19,9 @@ config SETSID
void setsid_main(void)
{
- while (setsid()<0) if (vfork()) _exit(0);
+ while (setsid()<0) if (xvfork()) _exit(0);
if (toys.optflags) {
- setpgid(0,0);
+ setpgid(0, 0);
tcsetpgrp(0, getpid());
}
xexec(toys.optargs);