summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2017-11-11 12:18:53 +0100
committerChristian Mollekopf <chrigi_1@fastmail.fm>2017-11-11 12:18:53 +0100
commitc10d97e2f19a852622221be70e9fe372bd916743 (patch)
tree7bf1236037afb952f1a30621295f92e792099189
parentff1451ab9993b66ef6864558d4d9379ae13c6686 (diff)
downloadkube-c10d97e2f19a852622221be70e9fe372bd916743.tar.gz
kube-c10d97e2f19a852622221be70e9fe372bd916743.zip
Deal with defunc processes
When running the tests on the CI the gpg process goes defunc instead of away. To avoid waiting forever we need to carry on as soon as that happens.
-rw-r--r--cmake/modules/generate_crypto_test_wrapper.cmake5
1 files changed, 5 insertions, 0 deletions
diff --git a/cmake/modules/generate_crypto_test_wrapper.cmake b/cmake/modules/generate_crypto_test_wrapper.cmake
index e1412f37..836662c3 100644
--- a/cmake/modules/generate_crypto_test_wrapper.cmake
+++ b/cmake/modules/generate_crypto_test_wrapper.cmake
@@ -21,6 +21,11 @@ if [ ! -z \"\$_pid\" ]; then
21 echo \"Waiting for gpg-agent to terminate (PID: $_pid)...\" 21 echo \"Waiting for gpg-agent to terminate (PID: $_pid)...\"
22 while kill -0 \"\$_pid\"; do 22 while kill -0 \"\$_pid\"; do
23 sleep 1 23 sleep 1
24 output=`ps -p \"\$_pid\" | grep \"gpg-agent\" | grep \"defunc\"`
25 if [ ! -z \"\$output\" ]; then
26 echo \"Process is defunc, moving on\"
27 break
28 fi
24 done 29 done
25fi 30fi
26exit \$_result 31exit \$_result