sh: Use input_file instead of hardcoding stdin everywhere in tcsetpgrp()
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
7a4d3ba495
commit
c72c6312d4
@ -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());
|
||||||
|
Loading…
Reference in New Issue
Block a user