diff options
| author | Alan Conway <aconway@apache.org> | 2008-09-25 17:42:20 +0000 |
|---|---|---|
| committer | Alan Conway <aconway@apache.org> | 2008-09-25 17:42:20 +0000 |
| commit | 870a3e7c67f6e16805c83bc742eb4eebd0632f34 (patch) | |
| tree | 5d7ab0d997371a0c6a6e6cc394192c0a56e792a3 /cpp/src/qpid/broker/Daemon.cpp | |
| parent | a1063e585b788804d04344255ef21606654cbb41 (diff) | |
| download | qpid-python-870a3e7c67f6e16805c83bc742eb4eebd0632f34.tar.gz | |
Fixed incorrect exception message.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@699031 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/broker/Daemon.cpp')
| -rw-r--r-- | cpp/src/qpid/broker/Daemon.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/cpp/src/qpid/broker/Daemon.cpp b/cpp/src/qpid/broker/Daemon.cpp index c311730f76..1796c8db04 100644 --- a/cpp/src/qpid/broker/Daemon.cpp +++ b/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 |
