mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 02:17:34 +00:00
HackStudio: Set the pgrp of the pseudoterminal to the child pid
This fixes #3046.
This commit is contained in:
parent
34dd8edcb3
commit
1222be7e3a
1 changed files with 2 additions and 0 deletions
|
@ -104,6 +104,8 @@ void TerminalWrapper::run_command(const String& command)
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
tcsetpgrp(pts_fd, getpid());
|
||||||
|
|
||||||
// NOTE: It's okay if this fails.
|
// NOTE: It's okay if this fails.
|
||||||
(void)ioctl(0, TIOCNOTTY);
|
(void)ioctl(0, TIOCNOTTY);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue