From e4c9d1315c0cacf1ad33e14c4ff3de60d2f9b2bb Mon Sep 17 00:00:00 2001 From: Katerina Koukiou Date: Tue, 22 Oct 2024 13:03:50 +0200 Subject: [PATCH] webui-desktop: do not kill cockpit-ws if BROWSER dies In recent boot.iso we noticed firefox crashing under wayland. This would kill also cockpit-ws, to which tests would be connecting remotely, therefore destroying the whole test run. Although firefox crashing is serious and will be reported, we don't have to block the while test suite run on that, since we run tests remotely. --- webui-desktop | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/webui-desktop b/webui-desktop index 1acdd09f6e..6cfc630609 100755 --- a/webui-desktop +++ b/webui-desktop @@ -104,6 +104,12 @@ exec > >(systemd-cat -t anaconda) 2>&1 # Cleanup function cleanup() { set +e + if [[ "$WEBUI_REMOTE" == "1" ]] + then + echo "Warning: BROWSER died unexpectedly. Not doing further cleanup as we might be connecting remotely." + wait $WS_PID + fi + kill $WS_PID wait $WS_PID kill $B_PID