Shell: Give the TTY to the foreground process

This fixes the bug with the shell not waiting for any foreground process
that attempts to read from the terminal in the Lagom build.
This commit is contained in:
AnotherTest 2020-08-04 22:37:47 +04:30 committed by Andreas Kling
commit 771751258e
Notes: sideshowbarker 2024-07-19 04:18:34 +09:00
3 changed files with 15 additions and 6 deletions

View file

@ -131,6 +131,7 @@ int main(int argc, char** argv)
sigset_t blocked;
sigemptyset(&blocked);
sigaddset(&blocked, SIGTTOU);
sigaddset(&blocked, SIGTTIN);
pthread_sigmask(SIG_BLOCK, &blocked, NULL);
#endif
#ifdef __serenity__