diff --git a/Shell/main.cpp b/Shell/main.cpp index 06ebebfe78..f9278fa020 100644 --- a/Shell/main.cpp +++ b/Shell/main.cpp @@ -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]);