HackStudio: Set the pgrp of the pseudoterminal to the child pid
This fixes #3046.
This commit is contained in:
parent
34dd8edcb3
commit
1222be7e3a
Notes:
sideshowbarker
2024-07-19 04:08:54 +09:00
Author: https://github.com/alimpfard Commit: https://github.com/SerenityOS/serenity/commit/1222be7e3a6 Pull-request: https://github.com/SerenityOS/serenity/pull/3055 Issue: https://github.com/SerenityOS/serenity/issues/3046
1 changed files with 2 additions and 0 deletions
|
@ -104,6 +104,8 @@ void TerminalWrapper::run_command(const String& command)
|
|||
exit(1);
|
||||
}
|
||||
|
||||
tcsetpgrp(pts_fd, getpid());
|
||||
|
||||
// NOTE: It's okay if this fails.
|
||||
(void)ioctl(0, TIOCNOTTY);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue