diff options
-rw-r--r-- | Userland/Shell/main.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Userland/Shell/main.cpp b/Userland/Shell/main.cpp index 7a68275018..57dc492b22 100644 --- a/Userland/Shell/main.cpp +++ b/Userland/Shell/main.cpp @@ -55,6 +55,12 @@ ErrorOr<int> serenity_main(Main::Arguments arguments) s_shell->setup_signals(); + sigset_t blocked; + sigemptyset(&blocked); + sigaddset(&blocked, SIGTTOU); + sigaddset(&blocked, SIGTTIN); + pthread_sigmask(SIG_BLOCK, &blocked, nullptr); + shell->termios = editor->termios(); shell->default_termios = editor->default_termios(); |