From c10d97e2f19a852622221be70e9fe372bd916743 Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Sat, 11 Nov 2017 12:18:53 +0100 Subject: 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. --- cmake/modules/generate_crypto_test_wrapper.cmake | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'cmake/modules') 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 echo \"Waiting for gpg-agent to terminate (PID: $_pid)...\" while kill -0 \"\$_pid\"; do sleep 1 + output=`ps -p \"\$_pid\" | grep \"gpg-agent\" | grep \"defunc\"` + if [ ! -z \"\$output\" ]; then + echo \"Process is defunc, moving on\" + break + fi done fi exit \$_result -- cgit v1.2.3