Sample Header Ad - 728x90

How to poll for Xvfb to be ready?

15 votes
2 answers
2817 views
The Travis CI documentation says to run sleep 3 after starting xvfb to "give [it] some time to start". I couldn't find any reference to this delay in the man page . Is this cargo cult programming? If not, how do I **poll** rather than sleep to *guarantee* it's available?
Asked by l0b0 (53368 rep)
Sep 18, 2016, 05:12 PM
Last activity: May 25, 2021, 04:57 PM