summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Huddleston <jeremyhu@apple.com>2010-07-29 11:39:40 -0700
committerJeremy Huddleston <jeremyhu@apple.com>2010-07-29 11:41:32 -0700
commit750d4e82a0c1161292d24216bcff200cd6647611 (patch)
tree655fdc7e52bcbf1e77e63004743f5a31cde37f3f
parent98f90145d786695ecbc02a667c6ffe7c619dc67e (diff)
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>
-rw-r--r--hw/xquartz/pbproxy/main.m2
1 files changed, 2 insertions, 0 deletions
diff --git a/hw/xquartz/pbproxy/main.m b/hw/xquartz/pbproxy/main.m
index 560cf0182..bb0646502 100644
--- a/hw/xquartz/pbproxy/main.m
+++ b/hw/xquartz/pbproxy/main.m
@@ -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;
}