1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 19:17:44 +00:00

HackStudio: Set the pgrp of the pseudoterminal to the child pid

This fixes #3046.
This commit is contained in:
AnotherTest 2020-08-09 13:47:09 +04:30 committed by Andreas Kling
parent 34dd8edcb3
commit 1222be7e3a

View file

@ -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);