From 3a19470202c5c0f6e9375e5d57535c3d508f2edf Mon Sep 17 00:00:00 2001 From: rsc Date: Sat, 4 Nov 2006 18:46:00 +0000 Subject: In non-blocking recv functions in libmux and libdraw, distinguish between "cannot receive without blocking" and "EOF on connection". In libmux, do not elect async guys muxers, so that synchronous RPC calls run in the main event loop (e.g., in eresized) do not get stuck. Fixes problem reported by Lu Xuxiao, namely that jpg etc. would spin at 100% cpu usage. --- src/cmd/devdraw/x11-init.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/cmd/devdraw/x11-init.c') diff --git a/src/cmd/devdraw/x11-init.c b/src/cmd/devdraw/x11-init.c index bf1262ac..9ad6054f 100644 --- a/src/cmd/devdraw/x11-init.c +++ b/src/cmd/devdraw/x11-init.c @@ -47,7 +47,8 @@ static int xioerror(XDisplay *d) { /*print("X I/O error\n"); */ - sysfatal("X I/O error\n"); + exit(0); + /*sysfatal("X I/O error\n");*/ abort(); return -1; } -- cgit v1.2.3