diff options
author | Peter Collingbourne <peter@pcc.me.uk> | 2011-11-13 05:49:16 (GMT) |
---|---|---|
committer | Peter Collingbourne <peter@pcc.me.uk> | 2012-02-04 21:46:12 (GMT) |
commit | 85ff781fa30fff63c01ccd30faaad39d766e1505 (patch) | |
tree | dc5791da4769c61951735e84febcccfa8acf98d2 /src/exit_status.h | |
parent | b07e183e0eb6225e34a3d592e3dff63bcf00df81 (diff) | |
download | Ninja-85ff781fa30fff63c01ccd30faaad39d766e1505.zip Ninja-85ff781fa30fff63c01ccd30faaad39d766e1505.tar.gz Ninja-85ff781fa30fff63c01ccd30faaad39d766e1505.tar.bz2 |
Implement cleanup-on-interrupt
This causes us to clean up by deleting any output files belonging
to currently-running commands before we quit if we are interrupted
(either by Ctrl-C or by a command failing).
Fixes issue #110.
Diffstat (limited to 'src/exit_status.h')
-rw-r--r-- | src/exit_status.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/src/exit_status.h b/src/exit_status.h new file mode 100644 index 0000000..a714ece --- /dev/null +++ b/src/exit_status.h @@ -0,0 +1,24 @@ +// Copyright 2011 Google Inc. All Rights Reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#ifndef NINJA_EXIT_STATUS_H_ +#define NINJA_EXIT_STATUS_H_ + +enum ExitStatus { + ExitSuccess, + ExitFailure, + ExitInterrupted +}; + +#endif // NINJA_EXIT_STATUS_H_ |