From 750d4e82a0c1161292d24216bcff200cd6647611 Mon Sep 17 00:00:00 2001 From: Jeremy Huddleston Date: Thu, 29 Jul 2010 11:39:40 -0700 Subject: [PATCH] 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 --- hw/xquartz/pbproxy/main.m | 2 ++ 1 file changed, 2 insertions(+) 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; }