mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice
synced 2025-12-31 20:04:09 +00:00
x11: Use _exit rather then exit on X errors (rhbz#680763)
This avoids us trying to restore the original resolution when we're fullscreen and an X error happens. As restoring fullscreen is a bad idea then as this involves making more X calls, which can get us stuck (in side an XLockDisplay call for example).
This commit is contained in:
parent
e9ee6cf914
commit
15b8252289
@ -3024,14 +3024,14 @@ static int x_error_handler(Display* display, XErrorEvent* error_event)
|
||||
error_str,
|
||||
(uint32_t)error_event->minor_code,
|
||||
request_str);
|
||||
exit(-1);
|
||||
_exit(-1);
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int x_io_error_handler(Display* display)
|
||||
{
|
||||
LOG_ERROR("x io error on %s", XDisplayString(display));
|
||||
exit(-1);
|
||||
_exit(-1);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user