diff options
author | Mark Spruiell <mes@zeroc.com> | 2004-11-01 19:25:03 +0000 |
---|---|---|
committer | Mark Spruiell <mes@zeroc.com> | 2004-11-01 19:25:03 +0000 |
commit | cd6a6ec86c4468fb60953152b2968f1726c4af02 (patch) | |
tree | 10cc91fca454049e458256d979dda8752a2e123c /cpp/src/Ice/Service.cpp | |
parent | exception fixes (diff) | |
download | ice-cd6a6ec86c4468fb60953152b2968f1726c4af02.tar.bz2 ice-cd6a6ec86c4468fb60953152b2968f1726c4af02.tar.xz ice-cd6a6ec86c4468fb60953152b2968f1726c4af02.zip |
use _exit in daemon parent
Diffstat (limited to 'cpp/src/Ice/Service.cpp')
-rwxr-xr-x | cpp/src/Ice/Service.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/cpp/src/Ice/Service.cpp b/cpp/src/Ice/Service.cpp index b771de66de7..7224b114a70 100755 --- a/cpp/src/Ice/Service.cpp +++ b/cpp/src/Ice/Service.cpp @@ -1306,8 +1306,8 @@ Ice::Service::runDaemon(int argc, char* argv[]) continue; } - cerr << argv[0] << ": " << strerror(errno) << endl; - return EXIT_FAILURE; + cerr << argv[0] << ": " << strerror(errno) << endl << flush; + _exit(EXIT_FAILURE); } break; } @@ -1330,17 +1330,17 @@ Ice::Service::runDaemon(int argc, char* argv[]) } cerr << argv[0] << ": I/O error while reading error message from child:" << endl - << strerror(errno) << endl; - return EXIT_FAILURE; + << strerror(errno) << endl << flush; + _exit(EXIT_FAILURE); } pos += n; break; } - cerr << argv[0] << ": failure occurred in daemon:" << endl << msg << endl; - return EXIT_FAILURE; + cerr << argv[0] << ": failure occurred in daemon:" << endl << msg << endl << flush; + _exit(EXIT_FAILURE); } - return EXIT_SUCCESS; + _exit(EXIT_SUCCESS); } // |