commit 37e0945b004e7690597c8ac5f76c53c4dd1974ef
parent 5a483707e990d87eb57f57be1fbbb7a0d0c034b7
Author: Christian Grothoff <grothoff@gnunet.org>
Date: Sun, 14 Jan 2024 18:11:08 +0100
simpify logic
Diffstat:
1 file changed, 0 insertions(+), 6 deletions(-)
diff --git a/contrib/taler-mdb-network-check.sh b/contrib/taler-mdb-network-check.sh
@@ -119,11 +119,8 @@ 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}"
@@ -131,12 +128,9 @@ function childdeath()
fi
if ! ps "$CHILD_PID" &> /dev/null
then
- echo "taler-mdb died"
wait "${CHILD_PID}"
CHILD_PID="-1"
- show_failure child-died
fi
- child_death_debounce=0
}
# Install cleanup handler (except for kill -9)