Return 130 instead of 2 when interrupted by Ctrl+C, fix #430

This commit is contained in:
Jan Niklas Hasse
2024-04-11 19:07:43 +02:00
parent 1dcebc6399
commit 9028a94fbf

View File

@@ -1382,7 +1382,7 @@ int NinjaMain::RunBuild(int argc, char** argv, Status* status) {
if (!builder.Build(&err)) {
status->Info("build stopped: %s.", err.c_str());
if (err.find("interrupted by user") != string::npos) {
return 2;
return 130;
}
return 1;
}