diff options
author | Dwayne Boone <dwayne@zeroc.com> | 2008-01-17 13:11:19 -0330 |
---|---|---|
committer | Dwayne Boone <dwayne@zeroc.com> | 2008-01-17 13:11:19 -0330 |
commit | a2e4ce4b60e9fac86c2cf81e3f22845a699efaa6 (patch) | |
tree | bbb1b67428ee22ec495456dc1a6bdd46f8e45236 /cpp/src/slice2cpp/Gen.cpp | |
parent | Bug 2261 - renaming Ice for C# to Ice for .NET (diff) | |
download | ice-a2e4ce4b60e9fac86c2cf81e3f22845a699efaa6.tar.bz2 ice-a2e4ce4b60e9fac86c2cf81e3f22845a699efaa6.tar.xz ice-a2e4ce4b60e9fac86c2cf81e3f22845a699efaa6.zip |
Bug 2540 - trap ctrl-C and unlink output files
Diffstat (limited to 'cpp/src/slice2cpp/Gen.cpp')
-rwxr-xr-x | cpp/src/slice2cpp/Gen.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/cpp/src/slice2cpp/Gen.cpp b/cpp/src/slice2cpp/Gen.cpp index d68c2f4d8c2..91473852683 100755 --- a/cpp/src/slice2cpp/Gen.cpp +++ b/cpp/src/slice2cpp/Gen.cpp @@ -12,6 +12,7 @@ #include <IceUtil/Functional.h> #include <IceUtil/Iterator.h> #include <Slice/Checksum.h> +#include <Slice/SignalHandler.h> #include <limits> #include <sys/stat.h> @@ -72,6 +73,8 @@ Slice::Gen::Gen(const string& name, const string& base, const string& headerExte fileImplH = dir + '/' + fileImplH; fileImplC = dir + '/' + fileImplC; } + SignalHandler::addFile(fileImplH); + SignalHandler::addFile(fileImplC); struct stat st; if(stat(fileImplH.c_str(), &st) == 0) @@ -117,6 +120,8 @@ Slice::Gen::Gen(const string& name, const string& base, const string& headerExte fileH = dir + '/' + fileH; fileC = dir + '/' + fileC; } + SignalHandler::addFile(fileH); + SignalHandler::addFile(fileC); H.open(fileH.c_str()); if(!H) |