fix: Terminate on X connection error

This commit is contained in:
Michael Carlberg 2016-11-14 10:37:13 +01:00
parent e3065d0e6c
commit 39b4f50c65

View File

@ -302,7 +302,8 @@ void controller::wait_for_xevent() {
int error = 0; int error = 0;
if ((error = m_connection.connection_has_error()) != 0) { if ((error = m_connection.connection_has_error()) != 0) {
m_log.err("Error in X event loop, aborting... (%s)", m_connection.error_str(error)); m_log.err("Error in X event loop, terminating... (%s)", m_connection.error_str(error));
kill(getpid(), SIGTERM);
break; break;
} }