mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 04:07:44 +00: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
1 changed files with 3 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue