wayland-server: Don't close display fd in fatal error handler
authorKristian Høgsberg <krh@bitplanet.net>
Tue, 9 Jul 2013 22:59:11 +0000 (18:59 -0400)
committerKristian Høgsberg <krh@bitplanet.net>
Tue, 9 Jul 2013 22:59:11 +0000 (18:59 -0400)
commit93d888aec6331ce30e61188cc00ab3dc9f137efb
treee352478b0969303fd023332a81a5fb35d3bfd88e
parentbecca5fcf7a69e5e7b2d287a8a24d93d9d29fa5a
wayland-server: Don't close display fd in fatal error handler

We can't do that there, we have to make sure it stays a valid fd until
the application calls wl_display_disconnect().  Otherwise the application
may end up poll()ing on a stale or wrong fd in case another part of the
application (or another thread) triggered a fatal error.
src/wayland-client.c