test/x11comp: don't hang if Xvfb is not available
authorRan Benita <ran234@gmail.com>
Mon, 1 Sep 2014 14:20:40 +0000 (17:20 +0300)
committerRan Benita <ran234@gmail.com>
Mon, 1 Sep 2014 14:20:40 +0000 (17:20 +0300)
commitfc95057c5f3902ce9010b1ee3ec8c8a3503a8962
tree371e5e9b6a0c83aab738ef47d1d5849f9f8ab4d9
parent527bf96f9b0a25928432edba4bab27ac808a2fe2
test/x11comp: don't hang if Xvfb is not available

If Xvfb is not present, posix_spawn still forks, but the child fails.
In that case, since we left the write fd of the pipe open in the parent,
we just kept waiting on the read() without noticing that the other side
is dead.

Signed-off-by: Ran Benita <ran234@gmail.com>
test/x11comp.c