From 7f24f7fd2361ff5d43775e4523bc78ffdb108306 Mon Sep 17 00:00:00 2001 From: Dwayne Boone Date: Wed, 19 Nov 2008 11:06:31 -0330 Subject: Added use of CtrlChandler to slice compilers --- cpp/src/slice2cpp/Main.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'cpp/src/slice2cpp/Main.cpp') diff --git a/cpp/src/slice2cpp/Main.cpp b/cpp/src/slice2cpp/Main.cpp index 0fef7634add..4ead491dd22 100644 --- a/cpp/src/slice2cpp/Main.cpp +++ b/cpp/src/slice2cpp/Main.cpp @@ -8,6 +8,7 @@ // ********************************************************************** #include +#include #include #include #include @@ -151,7 +152,9 @@ main(int argc, char* argv[]) for(i = args.begin(); i != args.end(); ++i) { - SignalHandler sigHandler; + SignalHandler::clearCleanupFileList(); + IceUtil::CtrlCHandler ctrlCHandler; + ctrlCHandler.setCallback(SignalHandler::removeFilesOnInterrupt); if(depend) { -- cgit v1.2.3