mirror of
https://github.com/RGBCube/serenity
synced 2025-05-28 22:05:06 +00:00
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:
parent
984683cf34
commit
771751258e
3 changed files with 15 additions and 6 deletions
|
@ -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__
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue