summary refs log tree commit diff
path: root/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'main.c')
-rw-r--r--main.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/main.c b/main.c
index 2bedc63..39d8cea 100644
--- a/main.c
+++ b/main.c
@@ -549,6 +549,12 @@ main(int argc, char **argv) {
 		if (fds[WAYLAND_FD].revents & POLLIN) {
 			wl_display_dispatch(display);
 		}
+		if (fds[WAYLAND_FD].revents & POLLERR) {
+			die("Exceptional condition on wayland socket.\n");
+		}
+		if (fds[WAYLAND_FD].revents & POLLHUP) {
+			die("Wayland socket has been disconnected.\n");
+		}
 
 		if (fds[SIGNAL_FD].revents & POLLIN) {
 			struct signalfd_siginfo si;