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
Notes: sideshowbarker 2024-07-19 04:08:54 +09:00

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