diff options
author | Matthew Sackman <matthew@rabbitmq.com> | 2011-02-07 17:10:35 +0000 |
---|---|---|
committer | Matthew Sackman <matthew@rabbitmq.com> | 2011-02-07 17:10:35 +0000 |
commit | b7a648a76bef315cae155b11b48baf0cc5dcd593 (patch) | |
tree | ba0da205dbd20bd7ff89234633124ca8dee82f14 /src/rabbit_amqqueue.erl | |
parent | 6c589ca4cbbd455248a62e2c0d1991d1a039dba7 (diff) | |
download | rabbitmq-server-b7a648a76bef315cae155b11b48baf0cc5dcd593.tar.gz |
remove non-rpc'd call to is_process_alive - now matches the rpc version in amqqueue_process
Diffstat (limited to 'src/rabbit_amqqueue.erl')
-rw-r--r-- | src/rabbit_amqqueue.erl | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/rabbit_amqqueue.erl b/src/rabbit_amqqueue.erl index a6da551d..053b6c6f 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). |