client: handle fcntl error on bad fd in wl_display_connect
authorManuel Stoeckl <code@mstoeckl.com>
Sun, 1 Aug 2021 05:38:45 +0000 (01:38 -0400)
committerSimon Ser <contact@emersion.fr>
Thu, 28 Oct 2021 12:30:43 +0000 (12:30 +0000)
commitf00cfda73723c4854538f7c3145ccd4f0cf5107a
tree45bda7281d954f82659e4abe91288d34a8e34d42
parentd564823cfdbdb62e4d84a3b2d15fa016fd7fb5dd
client: handle fcntl error on bad fd in wl_display_connect

This makes wl_display_connect fail immediately instead of
succeeding when the integer provided by WAYLAND_SOCKET does
not refer to a valid file descriptor.

Signed-off-by: Manuel Stoeckl <code@mstoeckl.com>
src/wayland-client.c