summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 280d61a577..8c8080b90d 100644
--- a/Makefile
+++ b/Makefile
@@ -255,7 +255,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=.