mirror of
https://gitlab.com/sortix/sortix.git
synced 2023-02-13 20:55:38 -05:00
Fix unintended extra fork in chroot(1).
This commit is contained in:
parent
23810c1a48
commit
cf5c2706b3
1 changed files with 0 additions and 6 deletions
|
@ -171,12 +171,6 @@ int main(int argc, char* argv[])
|
|||
sigprocmask(SIG_SETMASK, &oldset, NULL);
|
||||
}
|
||||
|
||||
pid_t child_pid = 0;
|
||||
if ( devices )
|
||||
child_pid = fork();
|
||||
if ( child_pid < 0 )
|
||||
error(1, errno, "fork");
|
||||
|
||||
if ( chroot(argv[1]) != 0 )
|
||||
error(1, errno, "`%s'", argv[1]);
|
||||
|
||||
|
|
Loading…
Reference in a new issue