diff --git a/compiler-rt/lib/fuzzer/FuzzerUtilLinux.cpp b/compiler-rt/lib/fuzzer/FuzzerUtilLinux.cpp --- a/compiler-rt/lib/fuzzer/FuzzerUtilLinux.cpp +++ b/compiler-rt/lib/fuzzer/FuzzerUtilLinux.cpp @@ -23,8 +23,11 @@ int ExecuteCommand(const Command &Cmd) { std::string CmdLine = Cmd.toString(); int exit_code = system(CmdLine.c_str()); - if (WIFEXITED(exit_code)) + if (WIFEXITED(exit_code)){ return WEXITSTATUS(exit_code); + } else if (WIFSIGNALED(exit_code) && WTERMSIG(exit_code) == SIGINT) { + return 72; // Options->InterruptExitCode + } return exit_code; }