gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-taler-mdb] branch master updated: Fix child starting


From: gnunet
Subject: [taler-taler-mdb] branch master updated: Fix child starting
Date: Sun, 14 Jan 2024 17:27:38 +0100

This is an automated email from the git hooks/post-receive script.

grothoff pushed a commit to branch master
in repository taler-mdb.

The following commit(s) were added to refs/heads/master by this push:
     new 782e221  Fix child starting
782e221 is described below

commit 782e22177f7f630c27fc88115abe7b959ef94bd7
Author: Christian Grothoff <grothoff@gnunet.org>
AuthorDate: Sun Jan 14 17:27:35 2024 +0100

    Fix child starting
---
 contrib/taler-mdb-network-check.sh | 13 ++++++++-----
 1 file changed, 8 insertions(+), 5 deletions(-)

diff --git a/contrib/taler-mdb-network-check.sh 
b/contrib/taler-mdb-network-check.sh
index 447fda6..da3eb53 100755
--- a/contrib/taler-mdb-network-check.sh
+++ b/contrib/taler-mdb-network-check.sh
@@ -168,14 +168,17 @@ function check_network()
         show_failure backend-auth-failure
         return
     fi
-    echo "Network OK, starting child"
 
-    if [ "${CHILD_PID}" = "-1" ]
+    if [ "$CHILD_PID" != "-1" ]
     then
-        # shellcheck disable=SC2068
-        $@ &
-        CHILD_PID=$!
+        kill -TERM "$CHILD_PID"
+        wait
+        CHILD_PID="-1"
     fi
+    echo "Network OK, starting child"
+    # shellcheck disable=SC2068
+    $@ &
+    CHILD_PID=$!
 }
 
 

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]