diff --git a/.github/workflows/ci-freebsd.yml b/.github/workflows/ci-freebsd.yml index 192f694c4..02a760b04 100644 --- a/.github/workflows/ci-freebsd.yml +++ b/.github/workflows/ci-freebsd.yml @@ -217,7 +217,8 @@ jobs: cd "${GITHUB_WORKSPACE}/build/tests" export DISPLAY=:1 - Xvfb ${DISPLAY} -screen 0 1024x768x24 & + # Do not reset the server when enumeration closes the last X11 connection. + Xvfb ${DISPLAY} -screen 0 1024x768x24 -noreset & XVFB_PID=$! trap 'kill "${XVFB_PID}" 2>/dev/null || true; wait "${XVFB_PID}" 2>/dev/null || true' EXIT