mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-02-17 12:30:38 +01:00
XQuartz: xpbproxy: Don't take down the whole server on an IO error
Calls pthread_exit to prevent _XIOError from calling exit()
This fixes http://xquartz.macosforge.org/trac/ticket/421
Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
(cherry picked from commit 750d4e82a0)
This commit is contained in:
parent
5aeb53dd7b
commit
a9483196cf
1 changed files with 2 additions and 0 deletions
|
|
@ -75,6 +75,8 @@ static int x_io_error_handler (Display *dpy) {
|
|||
exit(EXIT_FAILURE);
|
||||
#endif
|
||||
|
||||
/* Prevent _XIOError from calling exit() */
|
||||
pthread_exit(NULL);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue