mirror of
https://github.com/ninja-build/ninja.git
synced 2026-06-30 19:58:23 +00:00
Return 130 instead of 2 when interrupted by Ctrl+C, fix #430
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user