mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-10 17:12:41 +02:00
Shell: Keep the TTY on the same pgroup to get tty signals
This allows the shell to be notified about SIGWINCH even when a child process is running in the foreground.
This commit is contained in:
committed by
Andreas Kling
parent
5fedf90bf9
commit
5cdb0ef2e5
Notes:
sideshowbarker
2024-07-19 05:05:50 +09:00
Author: https://github.com/alimpfard Commit: https://github.com/SerenityOS/serenity/commit/5cdb0ef2e5b Pull-request: https://github.com/SerenityOS/serenity/pull/2713 Reviewed-by: https://github.com/awesomekling
@@ -799,7 +799,7 @@ RefPtr<Value> Execute::run(RefPtr<Shell> shell)
|
||||
} else if (command.should_notify_if_in_background) {
|
||||
if (job)
|
||||
job->set_running_in_background(true);
|
||||
shell->take_back_stdin();
|
||||
shell->restore_stdin();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user