taler-mdb

GNU Taler Extensions and Integrations
Log | Files | Refs | Submodules | README | LICENSE

commit 5a821a0ef9bd9c2602a63f77b1e9c1bae31722a4
parent 4910655790ce89aa23f47517c9e21a1bb9f92a69
Author: Christian Grothoff <grothoff@gnunet.org>
Date:   Sun, 14 Jan 2024 18:06:33 +0100

do not get confused by sleep

Diffstat:
Mcontrib/taler-mdb-network-check.sh | 8++++----
1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/contrib/taler-mdb-network-check.sh b/contrib/taler-mdb-network-check.sh @@ -121,15 +121,15 @@ function show_failure() # Function to run when our child died. function childdeath() { - if [ "$ERROR_PID" != "-1" ] + if ! ps "$ERROR_PID" &> /dev/null then - wait ${ERROR_PID} + wait "${ERROR_PID}" ERROR_PID="-1" fi - if [ "$CHILD_PID" != "-1" ] + if ! ps "$CHILD_PID" &> /dev/null then echo "taler-mdb died" - wait ${CHILD_PID} + wait "${CHILD_PID}" CHILD_PID="-1" show_failure child-died fi