Don't tear down everything

This commit is contained in:
Radon Rosborough 2021-08-12 20:10:29 -07:00
parent c71cee1323
commit 78f47ffe37
1 changed files with 2 additions and 0 deletions

View File

@ -93,6 +93,8 @@ int main(int argc, char **argv)
execvp(argv[0], &argv[0]);
die("execvp failed");
}
if (setpgrp() < 0)
die("setpgrp failed");
int pid = no_pty ? 1 : fork();
if (pid < 0)
die("fork failed");