diff options
| author | Alan Conway <aconway@apache.org> | 2008-08-29 18:18:45 +0000 |
|---|---|---|
| committer | Alan Conway <aconway@apache.org> | 2008-08-29 18:18:45 +0000 |
| commit | ac1660c072fc1fc783731b7cd216861fc6999ac0 (patch) | |
| tree | 5e401b8cd8e4c491cefa4e74b8185e2cfc032736 /qpid/cpp/src/tests/ForkedBroker.h | |
| parent | 605ec8d6c0cfab3683fd962e42fbcd39b4b53db9 (diff) | |
| download | qpid-python-ac1660c072fc1fc783731b7cd216861fc6999ac0.tar.gz | |
Refactored cluster to intercept at ConnectionCode, using sys:: interfaces rather than boost functions.
Use framing::Operations and Invoker to dispatch cluster methods.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@690358 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/src/tests/ForkedBroker.h')
| -rw-r--r-- | qpid/cpp/src/tests/ForkedBroker.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/qpid/cpp/src/tests/ForkedBroker.h b/qpid/cpp/src/tests/ForkedBroker.h index a7869ff602..07e69a0735 100644 --- a/qpid/cpp/src/tests/ForkedBroker.h +++ b/qpid/cpp/src/tests/ForkedBroker.h @@ -53,12 +53,12 @@ class ForkedBroker { } ~ForkedBroker() { - try { stop(); } catch(const std::exception& e) { - QPID_LOG(error, QPID_MSG("Stopping forked broker: " << e.what())); + try { kill(); } catch(const std::exception& e) { + QPID_LOG(error, QPID_MSG("Killing forked broker: " << e.what())); } } - void stop() { + void kill() { using qpid::ErrnoException; if (pid == 0) return; if (::kill(pid, SIGINT) < 0) throw ErrnoException("kill failed"); |
