summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon MacMullen <simon@rabbitmq.com>2011-02-09 16:56:18 +0000
committerSimon MacMullen <simon@rabbitmq.com>2011-02-09 16:56:18 +0000
commit571f68ed98a25c014411f93106b58be010ceb515 (patch)
tree961c140fa3c21025beef2033901774ced7b6c10c
parentf4c47ea3cf0264003194a03dafe3ab1c1bf9be9f (diff)
downloadrabbitmq-server-571f68ed98a25c014411f93106b58be010ceb515.tar.gz
Add pid to rabbitmqctl status.
-rw-r--r--src/rabbit.erl3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/rabbit.erl b/src/rabbit.erl
index 67e2e40f..5ff96f90 100644
--- a/src/rabbit.erl
+++ b/src/rabbit.erl
@@ -212,7 +212,8 @@ stop_and_halt() ->
ok.
status() ->
- [{running_applications, application:which_applications()}] ++
+ [{pid, list_to_integer(os:getpid())},
+ {running_applications, application:which_applications()}] ++
rabbit_mnesia:status().
rotate_logs(BinarySuffix) ->