summaryrefslogtreecommitdiff
path: root/cpp/src/Ice/Service.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src/Ice/Service.cpp')
-rw-r--r--cpp/src/Ice/Service.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/cpp/src/Ice/Service.cpp b/cpp/src/Ice/Service.cpp
index f7b19c31932..22b18eff970 100644
--- a/cpp/src/Ice/Service.cpp
+++ b/cpp/src/Ice/Service.cpp
@@ -1530,7 +1530,7 @@ Ice::Service::runDaemon(int argc, char* argv[], const InitializationData& initDa
{
consoleErr << argv[0] << ": ";
}
- consoleErr << strerror(errno) << endl;
+ consoleErr << IceUtilInternal::errorToString(errno) << endl;
return EXIT_FAILURE;
}
@@ -1563,7 +1563,7 @@ Ice::Service::runDaemon(int argc, char* argv[], const InitializationData& initDa
{
consoleErr << argv[0] << ": ";
}
- consoleErr << strerror(errno) << endl;
+ consoleErr << IceUtilInternal::errorToString(errno) << endl;
_exit(EXIT_FAILURE);
}
break;
@@ -1590,7 +1590,8 @@ Ice::Service::runDaemon(int argc, char* argv[], const InitializationData& initDa
{
consoleErr << ": ";
}
- consoleErr << "I/O error while reading error message from child:\n" << strerror(errno) << endl;
+ consoleErr << "I/O error while reading error message from child:\n"
+ << IceUtilInternal::errorToString(errno) << endl;
_exit(EXIT_FAILURE);
}
pos += n;