summaryrefslogtreecommitdiff
path: root/qpid/cpp/src
diff options
context:
space:
mode:
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