diff --git a/shell/main.cpp b/shell/main.cpp index 253cd377..91944445 100644 --- a/shell/main.cpp +++ b/shell/main.cpp @@ -123,7 +123,7 @@ Result luna_main(int argc, char** argv) signal(SIGTTOU, SIG_IGN); signal(SIGINT, sigint_handler); - tcsetpgrp(STDIN_FILENO, getpgid(0)); + tcsetpgrp(input_file->fd(), getpgid(0)); } TRY(init_builtins());