summaryrefslogtreecommitdiff
path: root/qpid/cpp/src
diff options
context:
space:
mode:
authorAlan Conway <aconway@apache.org>2008-09-25 17:42:20 +0000
committerAlan Conway <aconway@apache.org>2008-09-25 17:42:20 +0000
commit77ceadc1eb625f0069b71d854b7fe3ba9e636e01 (patch)
tree3da9b33cb72b47ee8bcc51340736868029bf9d51 /qpid/cpp/src
parent2ab9c04722b1eff7ca83dd4994524b62e8641832 (diff)
downloadqpid-python-77ceadc1eb625f0069b71d854b7fe3ba9e636e01.tar.gz
Fixed incorrect exception message.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@699031 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/src')
-rw-r--r--qpid/cpp/src/qpid/broker/Daemon.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/qpid/cpp/src/qpid/broker/Daemon.cpp b/qpid/cpp/src/qpid/broker/Daemon.cpp
index c311730f76..1796c8db04 100644
--- a/qpid/cpp/src/qpid/broker/Daemon.cpp
+++ b/qpid/cpp/src/qpid/broker/Daemon.cpp
@@ -128,9 +128,8 @@ uint16_t Daemon::wait(int timeout) { // parent waits for child.
* Read the child's port number from the pipe.
*/
int desired_read = sizeof(uint16_t);
- if ( desired_read > ::read(pipeFds[0], & port, desired_read) ) {
- throw Exception("Cannot write lock file "+lockFile);
- }
+ if ( desired_read > ::read(pipeFds[0], & port, desired_read) )
+ throw Exception("Cannot read from child process.");
/*
* If the port number is 0, the child has put an error message