diff options
author | Mark Spruiell <mes@zeroc.com> | 2004-04-21 18:19:26 +0000 |
---|---|---|
committer | Mark Spruiell <mes@zeroc.com> | 2004-04-21 18:19:26 +0000 |
commit | 0054f4bc13c49d6e38a6175f65956de6fc5c87e7 (patch) | |
tree | 44356ea4b0d7def90529e2cd63ee975682f1a8ac /cpp/src/IcePatch/Server.cpp | |
parent | expanding patching error message (diff) | |
download | ice-0054f4bc13c49d6e38a6175f65956de6fc5c87e7.tar.bz2 ice-0054f4bc13c49d6e38a6175f65956de6fc5c87e7.tar.xz ice-0054f4bc13c49d6e38a6175f65956de6fc5c87e7.zip |
bug fix for hang on signal
Diffstat (limited to 'cpp/src/IcePatch/Server.cpp')
-rw-r--r-- | cpp/src/IcePatch/Server.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/cpp/src/IcePatch/Server.cpp b/cpp/src/IcePatch/Server.cpp index a81636eceeb..3e6d7cb559c 100644 --- a/cpp/src/IcePatch/Server.cpp +++ b/cpp/src/IcePatch/Server.cpp @@ -199,9 +199,11 @@ IcePatch::IcePatchService::stop() { if(_thread) { - IceUtil::Monitor<IceUtil::Mutex>::Lock sync(_monitor); - _shutdown = true; - _monitor.notify(); + { + IceUtil::Monitor<IceUtil::Mutex>::Lock sync(_monitor); + _shutdown = true; + _monitor.notify(); + } _thread->getThreadControl().join(); _thread = 0; } |