summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorkumpf <kumpf>2005-07-29 18:36:25 +0000
committerkumpf <kumpf>2005-07-29 18:36:25 +0000
commit85f7031aba00cbfe7cb14cac48c50a2ab93e1f69 (patch)
tree6222d87732ffebb71f5f9a7972e0ff6144fa19dc /src
parented749018ed1e543317603488384333bcd5b7643c (diff)
downloadtog-pegasus-85f7031aba00cbfe7cb14cac48c50a2ab93e1f69.zip
tog-pegasus-85f7031aba00cbfe7cb14cac48c50a2ab93e1f69.tar.gz
tog-pegasus-85f7031aba00cbfe7cb14cac48c50a2ab93e1f69.tar.xz
BUG#: 4008
TITLE: cimserver -s returns before cimserver shuts down DESCRIPTION: Wait in the cimserver shutdown client until the cimserver is actually stopped (or up to the shutdownTimeout value).
Diffstat (limited to 'src')
-rw-r--r--src/Server/cimserver.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/Server/cimserver.cpp b/src/Server/cimserver.cpp
index 58e525f..dca8cdb 100644
--- a/src/Server/cimserver.cpp
+++ b/src/Server/cimserver.cpp
@@ -547,6 +547,13 @@ void shutdownCIMOM(Uint32 timeoutValue)
}
}
+ // Make sure the cimserver has time to actually shut down
+ Uint32 maxWaitTime = timeoutValue;
+ while ((maxWaitTime-- > 0) && _cimServerProcess->isCIMServerRunning())
+ {
+ System::sleep(1);
+ }
+
return;
}