mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-10 13:00:29 +03:00
Shell: Refuse to be suspended with ^Z
Suspending the shell while interacting with it is pretty weird, so let's just disallow this behaviour.
This commit is contained in:
parent
2814b5a918
commit
42114c5784
Notes:
sideshowbarker
2024-07-19 06:08:46 +09:00
Author: https://github.com/alimpfard Commit: https://github.com/SerenityOS/serenity/commit/42114c57847 Pull-request: https://github.com/SerenityOS/serenity/pull/2372 Issue: https://github.com/SerenityOS/serenity/issues/2370 Reviewed-by: https://github.com/bugaevc
@ -104,6 +104,9 @@ int main(int argc, char** argv)
|
||||
}
|
||||
});
|
||||
|
||||
// Ignore SIGTSTP as the shell should not be suspended with ^Z.
|
||||
signal(SIGTSTP, [](auto) {});
|
||||
|
||||
if (argc > 2 && !strcmp(argv[1], "-c")) {
|
||||
dbgprintf("sh -c '%s'\n", argv[2]);
|
||||
shell->run_command(argv[2]);
|
||||
|
Loading…
Reference in New Issue
Block a user