diff options
author | Benoit Foucher <benoit@zeroc.com> | 2006-05-30 13:16:47 +0000 |
---|---|---|
committer | Benoit Foucher <benoit@zeroc.com> | 2006-05-30 13:16:47 +0000 |
commit | 9af332cbe14b4d1e562e7e7919e48ed528c95090 (patch) | |
tree | d7a7587f07db94ca2346f5c3ff25b97b97cd0371 /cpp/src/IceGrid/Parser.cpp | |
parent | Fix (diff) | |
download | ice-9af332cbe14b4d1e562e7e7919e48ed528c95090.tar.bz2 ice-9af332cbe14b4d1e562e7e7919e48ed528c95090.tar.xz ice-9af332cbe14b4d1e562e7e7919e48ed528c95090.zip |
Fixed bug 969
Diffstat (limited to 'cpp/src/IceGrid/Parser.cpp')
-rw-r--r-- | cpp/src/IceGrid/Parser.cpp | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/cpp/src/IceGrid/Parser.cpp b/cpp/src/IceGrid/Parser.cpp index ce70a4a73b7..379bf7989c8 100644 --- a/cpp/src/IceGrid/Parser.cpp +++ b/cpp/src/IceGrid/Parser.cpp @@ -878,7 +878,15 @@ Parser::pidServer(const list<string>& args) try { - cout << _admin->getServerPid(args.front()) << endl; + int pid = _admin->getServerPid(args.front()); + if(pid > 0) + { + cout << pid << endl; + } + else + { + error("server is not running"); + } } catch(const Ice::Exception& ex) { |