taler-mdb

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

commit 5a483707e990d87eb57f57be1fbbb7a0d0c034b7
parent 5a821a0ef9bd9c2602a63f77b1e9c1bae31722a4
Author: Christian Grothoff <grothoff@gnunet.org>
Date:   Sun, 14 Jan 2024 18:08:40 +0100

do not get confused by sleep

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

diff --git a/contrib/taler-mdb-network-check.sh b/contrib/taler-mdb-network-check.sh @@ -119,8 +119,11 @@ function show_failure() } # Function to run when our child died. +child_death_debounce=0 function childdeath() { + if [[ $child_death_debounce == 1 ]]; then return; fi; + child_death_debounce=1 if ! ps "$ERROR_PID" &> /dev/null then wait "${ERROR_PID}" @@ -133,6 +136,7 @@ function childdeath() CHILD_PID="-1" show_failure child-died fi + child_death_debounce=0 } # Install cleanup handler (except for kill -9)