From a2e4ce4b60e9fac86c2cf81e3f22845a699efaa6 Mon Sep 17 00:00:00 2001 From: Dwayne Boone Date: Thu, 17 Jan 2008 13:11:19 -0330 Subject: Bug 2540 - trap ctrl-C and unlink output files --- cpp/src/slice2cppe/Main.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'cpp/src/slice2cppe/Main.cpp') diff --git a/cpp/src/slice2cppe/Main.cpp b/cpp/src/slice2cppe/Main.cpp index 12f630139ac..4b7ad83e54d 100644 --- a/cpp/src/slice2cppe/Main.cpp +++ b/cpp/src/slice2cppe/Main.cpp @@ -9,6 +9,7 @@ #include #include +#include #include using namespace std; @@ -141,6 +142,8 @@ main(int argc, char* argv[]) for(i = args.begin(); i != args.end(); ++i) { + SignalHandler sigHandler; + if(depend) { Preprocessor icecpp(argv[0], *i, cppArgs); -- cgit v1.2.3