summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJean-Sébastien Pédron <jean-sebastien@rabbitmq.com>2015-08-11 14:40:24 +0200
committerJean-Sébastien Pédron <jean-sebastien@rabbitmq.com>2015-08-11 14:40:24 +0200
commit699ce52eb0fc88bfa89e8f7162e402b07649398f (patch)
treec86db36cdf230c2aa003be0fe5cac07e62cd7eef /Makefile
parentd75793e97618c9d187175c7500deefb64953c058 (diff)
downloadrabbitmq-server-git-699ce52eb0fc88bfa89e8f7162e402b07649398f.tar.gz
make stop-node: Stop the node synchronously
... ie. wait for the process to actually exit.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 22f8270a07..fe54bdfd09 100644
--- a/Makefile
+++ b/Makefile
@@ -270,7 +270,11 @@ clear-resource-alarm: all
$(ERL_CALL)
stop-node:
- -$(ERL_CALL) -q
+ -( \
+ pid=$$(./scripts/rabbitmqctl -n $(RABBITMQ_NODENAME) eval 'os:getpid().') && \
+ $(ERL_CALL) -q && \
+ while ps -p $$pid >/dev/null 2>&1; do sleep 1; done \
+ )
# code coverage will be created for subdirectory "ebin" of COVER_DIR
COVER_DIR=.