Skip to content

Commit

Permalink
Kill XVFB when xvfb-run returns
Browse files Browse the repository at this point in the history
  • Loading branch information
rdeago committed Apr 20, 2024
1 parent 673f8c2 commit d86ab44
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion docker/opt/bin/x11-headless
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,7 @@
# then it complaints that "Xvfb cannot start" when it's already running.
pgrep -l Xvfb && pkill -e Xvfb || rm -f /tmp/.X99-lock

xvfb-run $@
xvfb-run $@

# Kill XVFB if it is still running (see above).
pgrep -l Xvfb && pkill -e Xvfb || rm -f /tmp/.X99-lock

0 comments on commit d86ab44

Please sign in to comment.