diff options
author | Dwayne Boone <dwayne@zeroc.com> | 2008-11-18 13:39:14 -0330 |
---|---|---|
committer | Dwayne Boone <dwayne@zeroc.com> | 2008-11-18 13:39:14 -0330 |
commit | ac8bf31698d259127646a4e114deca1e7d5e334c (patch) | |
tree | f694a8fc9e17bbb0044082510e5d0dd5622cbedc /cpp/src/Slice/Preprocessor.cpp | |
parent | Removed debug statements (diff) | |
download | ice-ac8bf31698d259127646a4e114deca1e7d5e334c.tar.bz2 ice-ac8bf31698d259127646a4e114deca1e7d5e334c.tar.xz ice-ac8bf31698d259127646a4e114deca1e7d5e334c.zip |
Bug 3541 - Slice signal handling unsafe
Diffstat (limited to 'cpp/src/Slice/Preprocessor.cpp')
-rw-r--r-- | cpp/src/Slice/Preprocessor.cpp | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/cpp/src/Slice/Preprocessor.cpp b/cpp/src/Slice/Preprocessor.cpp index ac62657e59a..8c7f1983413 100644 --- a/cpp/src/Slice/Preprocessor.cpp +++ b/cpp/src/Slice/Preprocessor.cpp @@ -29,20 +29,6 @@ using namespace std; using namespace Slice; // -// Callback for Crtl-C signal handling -// -static Preprocessor* _preprocess = 0; - -static void closeCallback() -{ - if(_preprocess != 0) - { - _preprocess->close(); - } -} - - -// // mcpp defines // namespace Slice @@ -65,8 +51,6 @@ Slice::Preprocessor::Preprocessor(const string& path, const string& fileName, co _args(args), _cppHandle(0) { - _preprocess = this; - SignalHandler::setCallback(closeCallback); } Slice::Preprocessor::~Preprocessor() @@ -453,9 +437,6 @@ Slice::Preprocessor::printMakefileDependencies(Language lang, const vector<strin bool Slice::Preprocessor::close() { - _preprocess = 0; - SignalHandler::setCallback(0); - if(_cppHandle != 0) { int status = fclose(_cppHandle); |