summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Sackman <matthew@rabbitmq.com>2011-02-07 17:10:35 +0000
committerMatthew Sackman <matthew@rabbitmq.com>2011-02-07 17:10:35 +0000
commit5a6d9c31b5f5a1779c952fb1d435b3f496cfa012 (patch)
treeba0da205dbd20bd7ff89234633124ca8dee82f14
parent013a60ff0c1093d26319e90926ddfd32c3db48da (diff)
downloadrabbitmq-server-git-5a6d9c31b5f5a1779c952fb1d435b3f496cfa012.tar.gz
remove non-rpc'd call to is_process_alive - now matches the rpc version in amqqueue_process
-rw-r--r--src/rabbit_amqqueue.erl9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/rabbit_amqqueue.erl b/src/rabbit_amqqueue.erl
index a6da551d15..053b6c6f65 100644
--- a/src/rabbit_amqqueue.erl
+++ b/src/rabbit_amqqueue.erl
@@ -218,10 +218,11 @@ internal_declare(Q = #amqqueue{name = QueueName}, false) ->
rabbit_misc:const(not_found)
end;
[ExistingQ = #amqqueue{pid = QPid}] ->
- case is_process_alive(QPid) of
- true -> rabbit_misc:const(ExistingQ);
- false -> TailFun = internal_delete(QueueName),
- fun (Tx) -> TailFun(Tx), ExistingQ end
+ case rpc:call(
+ node(QPid), erlang, is_process_alive, [QPid]) of
+ true -> rabbit_misc:const(ExistingQ);
+ _ -> TailFun = internal_delete(QueueName),
+ fun (Tx) -> TailFun(Tx), ExistingQ end
end
end
end).