summaryrefslogtreecommitdiff
path: root/cpp/src/IcePatch/Server.cpp
diff options
context:
space:
mode:
authorMark Spruiell <mes@zeroc.com>2004-04-21 18:19:26 +0000
committerMark Spruiell <mes@zeroc.com>2004-04-21 18:19:26 +0000
commit0054f4bc13c49d6e38a6175f65956de6fc5c87e7 (patch)
tree44356ea4b0d7def90529e2cd63ee975682f1a8ac /cpp/src/IcePatch/Server.cpp
parentexpanding patching error message (diff)
downloadice-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.cpp8
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;
}