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/slice2cs/Gen.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/slice2cs/Gen.cpp')
-rw-r--r-- | cpp/src/slice2cs/Gen.cpp | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/cpp/src/slice2cs/Gen.cpp b/cpp/src/slice2cs/Gen.cpp index 77736cad662..8cd18659005 100644 --- a/cpp/src/slice2cs/Gen.cpp +++ b/cpp/src/slice2cs/Gen.cpp @@ -39,19 +39,6 @@ using IceUtilInternal::eb; using IceUtilInternal::spar; using IceUtilInternal::epar; -// -// Callback for Crtl-C signal handling -// -static Gen* _gen = 0; - -static void closeCallback() -{ - if(_gen != 0) - { - _gen->closeOutput(); - } -} - static string // Should be an anonymous namespace, but VC++ 6 can't handle that. sliceModeToIceMode(Operation::Mode opMode) { @@ -1072,9 +1059,6 @@ Slice::Gen::Gen(const string& name, const string& base, const vector<string>& in : _includePaths(includePaths), _stream(stream) { - _gen = this; - SignalHandler::setCallback(closeCallback); - string fileBase = base; string::size_type pos = base.find_last_of("/\\"); if(pos != string::npos) @@ -1146,8 +1130,6 @@ Slice::Gen::~Gen() { _impl << '\n'; } - - SignalHandler::setCallback(0); } bool |