diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-11-11 12:18:53 +0100 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-11-11 12:18:53 +0100 |
commit | c10d97e2f19a852622221be70e9fe372bd916743 (patch) | |
tree | 7bf1236037afb952f1a30621295f92e792099189 | |
parent | ff1451ab9993b66ef6864558d4d9379ae13c6686 (diff) | |
download | kube-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.cmake | 5 |
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 |
25 | fi | 30 | fi |
26 | exit \$_result | 31 | exit \$_result |