From b3168c5a463f7c3477b983028910dfcff4375124 Mon Sep 17 00:00:00 2001 From: TBK Date: Thu, 23 Apr 2020 10:39:18 +0200 Subject: [PATCH] Propagate CHLD and USR1 signal to the Process Manager https://github.com/php-pm/php-pm-docker/pull/11 --- app/docker-entrypoint.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/docker-entrypoint.sh b/app/docker-entrypoint.sh index 8862e77..0acaa05 100644 --- a/app/docker-entrypoint.sh +++ b/app/docker-entrypoint.sh @@ -16,7 +16,9 @@ echo "Getting PPM ready:" trapIt() { "$@" & pid="$!" - trap 'kill -INT $pid' INT TERM + for SGNL in INT TERM CHLD USR1; do + trap "kill -$SGNL $pid" "$SGNL"; + done while kill -0 $pid >/dev/null 2>&1; do wait $pid ec="$?"