mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-28 19:59:17 +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
Notes:
sideshowbarker
2024-07-19 04:18:34 +09:00
Author: https://github.com/alimpfard
Commit: 771751258e
Pull-request: https://github.com/SerenityOS/serenity/pull/2987
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