wayland/src
Neil Roberts 12cea95593 wayland-client: Treat EOF when reading the wayland socket as an error
If EOF is encountered while reading from the Wayland socket, make
wl_display_read_events() return -1 so that it will be treated as an
error. The documentation for this function states that it will set
errno when there is an error so it additionally makes up an errno of
EPIPE.

If we don't do this then when the compositor quits the Wayland socket
will be become ready for reading but wl_display_dispatch will do
nothing which typically makes the application take up 100% CPU. In
particular eglSwapBuffers will likely get stuck in an infinite busy
loop because it repeatedly calls wl_display_dispatch_queue while it
waits for the frame callback.

https://bugzilla.gnome.org/show_bug.cgi?id=703892
2013-07-09 17:59:56 -04:00
..
.gitignore Add a public header for the version number 2012-04-12 17:54:44 -04:00
connection.c Add version information to wl_message signatures. 2013-07-02 15:52:47 -04:00
event-loop.c server: Make wl_object and wl_resource opaque structs 2013-07-02 15:52:47 -04:00
Makefile.am build: Add wayland-scanner.pc. 2013-07-03 16:38:12 -04:00
scanner.c Add version information to wl_message signatures. 2013-07-02 15:52:47 -04:00
scanner.mk Rename source subdir from wayland to src 2011-08-12 16:25:14 -04:00
wayland-client-uninstalled.pc.in build: add uninstalled pkg-config files 2012-05-29 10:09:59 -04:00
wayland-client.c wayland-client: Treat EOF when reading the wayland socket as an error 2013-07-09 17:59:56 -04:00
wayland-client.h client: Add wl_display_prepare_read() API to relax thread model assumptions 2013-06-17 11:50:42 -04:00
wayland-client.pc.in pkgconfig: Use configure provided directories 2012-11-27 20:35:50 -05:00
wayland-egl.h wayland-egl: Drop ill-defined pixmap support 2012-10-16 15:30:56 -04:00
wayland-os.c os: wrap accept4(SOCK_CLOEXEC) 2012-04-25 09:37:42 +03:00
wayland-os.h os: wrap accept4(SOCK_CLOEXEC) 2012-04-25 09:37:42 +03:00
wayland-private.h Add version information to wl_message signatures. 2013-07-02 15:52:47 -04:00
wayland-scanner-uninstalled.pc.in build: Add wayland-scanner.pc. 2013-07-03 16:38:12 -04:00
wayland-scanner.pc.in build: Add wayland-scanner.pc. 2013-07-03 16:38:12 -04:00
wayland-server-uninstalled.pc.in build: add uninstalled pkg-config files 2012-05-29 10:09:59 -04:00
wayland-server.c wayland-server: Add wl_global_create/destroy() 2013-07-09 01:15:37 -04:00
wayland-server.h wayland-server: Add wl_global_create/destroy() 2013-07-09 01:15:37 -04:00
wayland-server.pc.in pkgconfig: Use configure provided directories 2012-11-27 20:35:50 -05:00
wayland-shm.c wayland-server: Remove error event posting from wl_resource_create 2013-07-02 17:01:46 -04:00
wayland-util.c Remove incorrect sanity-check from wl_map_insert_at 2013-06-05 17:45:47 -04:00
wayland-util.h server: Make wl_object and wl_resource opaque structs 2013-07-02 15:52:47 -04:00
wayland-version.h.in Add a public header for the version number 2012-04-12 17:54:44 -04:00