mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-09 01:29:17 +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
Notes:
sideshowbarker
2024-07-19 04:08:54 +09:00
Author: https://github.com/alimpfard
Commit: 1222be7e3a
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
Add a link
Reference in a new issue