diff options
| author | Simon MacMullen <simon@rabbitmq.com> | 2011-07-15 11:09:09 +0100 |
|---|---|---|
| committer | Simon MacMullen <simon@rabbitmq.com> | 2011-07-15 11:09:09 +0100 |
| commit | 3c9ea59548401c22c0c5707d1bf5bc4c20b93964 (patch) | |
| tree | 2f6755e5075521014f6157ed028e4b2ce8d3f6f5 /src | |
| parent | 3b532afbaf3f05314d3171865b66a3b1395792a0 (diff) | |
| download | rabbitmq-server-git-3c9ea59548401c22c0c5707d1bf5bc4c20b93964.tar.gz | |
Do these checks the other way round - if the pid is not running we should fail, even if the node is up. I think.
Diffstat (limited to 'src')
| -rw-r--r-- | src/rabbit_control.erl | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/rabbit_control.erl b/src/rabbit_control.erl index 180f4b2de3..b1680d9571 100644 --- a/src/rabbit_control.erl +++ b/src/rabbit_control.erl @@ -359,13 +359,13 @@ wait_for_application(Node, PidFile, Inform) -> wait_for_application(Node, Pid). wait_for_application(Node, Pid) -> - case node_up(Node) of - true -> ok; - false -> case pid_up(Pid) of - true -> timer:sleep(1000), - wait_for_application(Node, Pid); - false -> {error, {pid_went_away, Pid}} - end + case pid_up(Pid) of + true -> case node_up(Node) of + true -> ok; + false -> timer:sleep(1000), + wait_for_application(Node, Pid) + end; + false -> {error, pid_not_running} end. wait_and_read_pid_file(PidFile) -> |
