sh: Use input_file instead of hardcoding stdin everywhere in tcsetpgrp()
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
apio 2023-07-21 21:08:27 +02:00
parent 7a4d3ba495
commit c72c6312d4
Signed by: apio
GPG Key ID: B8A7D06E42258954

View File

@ -123,7 +123,7 @@ Result<int> luna_main(int argc, char** argv)
signal(SIGTTOU, SIG_IGN); signal(SIGTTOU, SIG_IGN);
signal(SIGINT, sigint_handler); signal(SIGINT, sigint_handler);
tcsetpgrp(STDIN_FILENO, getpgid(0)); tcsetpgrp(input_file->fd(), getpgid(0));
} }
TRY(init_builtins()); TRY(init_builtins());