Test: Catch SIGUSR1 from Xvfb for X11 tests
authorPierre Le Marre <dev@wismill.eu>
Mon, 18 Sep 2023 11:17:31 +0000 (13:17 +0200)
committerWismill <dev@wismill.eu>
Mon, 18 Sep 2023 14:07:09 +0000 (16:07 +0200)
commit266427723a649f02348e252ef82079d0f45792cc
tree260e9d15c563296477c2af099785402485401ffe
parent26b1a07659f4fb8081190a24d9774fd74dcb1e95
Test: Catch SIGUSR1 from Xvfb for X11 tests

Based on the work done by Peter Hutterer. Original commit message:

If SIGUSR1 is set to SIG_IGN, X servers (all of them, including Xvfb)
will send that signal to the parent process when they're ready to accept
connections. We can use that instead of a hardcoded sleep which brings
the wait down to ~37ms on my box.
test/xvfb-wrapper.c