diff options
Diffstat (limited to 'sys/cmd/rc/main.c')
-rw-r--r-- | sys/cmd/rc/main.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/sys/cmd/rc/main.c b/sys/cmd/rc/main.c index 557030a..cb927e9 100644 --- a/sys/cmd/rc/main.c +++ b/sys/cmd/rc/main.c @@ -42,7 +42,7 @@ initshell(void) if(setpgid(shell.pid, shell.pid)<0) fatal("could not put shell in its own process group"); - tcsetpgrp(0, shell.pid); + tcsetpgrp(shell.pid, shell.pid); } } @@ -52,10 +52,6 @@ initshell(void) int main(int argc, char *argv[]) { - int i; - Code bootstrap[32]; - char num[12]; - shell.err = openfd(2); initenv(); |