1 |
spock 07/12/28 12:46:12 |
2 |
|
3 |
Added: xfractint-20.04p07-xioerror.patch |
4 |
Log: |
5 |
Add a fix for bug #203552. |
6 |
(Portage version: 2.1.4_rc11) |
7 |
|
8 |
Revision Changes Path |
9 |
1.1 x11-misc/xfractint/files/xfractint-20.04p07-xioerror.patch |
10 |
|
11 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-misc/xfractint/files/xfractint-20.04p07-xioerror.patch?rev=1.1&view=markup |
12 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-misc/xfractint/files/xfractint-20.04p07-xioerror.patch?rev=1.1&content-type=text/plain |
13 |
|
14 |
Index: xfractint-20.04p07-xioerror.patch |
15 |
=================================================================== |
16 |
diff -Naurp xfractint-20.04p07/unix/unixscr.c xfractint-20.04p07-fixed/unix/unixscr.c |
17 |
--- xfractint-20.04p07/unix/unixscr.c 2005-11-22 23:51:24.000000000 +0100 |
18 |
+++ xfractint-20.04p07-fixed/unix/unixscr.c 2007-12-28 13:40:50.000000000 +0100 |
19 |
@@ -137,6 +137,7 @@ static int doredraw = 0; /* 1 if we have |
20 |
static Window FindRootWindow(void); |
21 |
static Window pr_dwmroot(Display *dpy, Window pwin); |
22 |
static int errhand(Display *dp, XErrorEvent *xe); |
23 |
+static int ioerrhand(Display *dp); |
24 |
static int getachar(void); |
25 |
static int handleesc(void); |
26 |
static int translatekey(int ch); |
27 |
@@ -345,6 +346,30 @@ XErrorEvent *xe; |
28 |
return(0); |
29 |
} |
30 |
|
31 |
+/* |
32 |
+ *---------------------------------------------------------------------- |
33 |
+ * |
34 |
+ * ioerrhand -- |
35 |
+ * |
36 |
+ * Called on an X IO server error. |
37 |
+ * |
38 |
+ * Results: |
39 |
+ * None. |
40 |
+ * |
41 |
+ * Side effects: |
42 |
+ * Prints the error message. |
43 |
+ * |
44 |
+ *---------------------------------------------------------------------- |
45 |
+ */ |
46 |
+static int ioerrhand(dp) |
47 |
+Display *dp; |
48 |
+{ |
49 |
+ UnixDone(); |
50 |
+ fflush(stdout); |
51 |
+ printf("Fatal X IO error on display %s\n", DisplayString(dp)); |
52 |
+ return(0); |
53 |
+} |
54 |
+ |
55 |
#ifdef FPUERR |
56 |
/* |
57 |
*---------------------------------------------------------------------- |
58 |
@@ -552,6 +577,7 @@ initUnixWindow() |
59 |
XSynchronize(Xdp, True); |
60 |
} |
61 |
XSetErrorHandler(errhand); |
62 |
+ XSetIOErrorHandler(ioerrhand); |
63 |
Xsc = ScreenOfDisplay(Xdp, Xdscreen); |
64 |
select_visual(); |
65 |
if (fixcolors > 0) { |
66 |
|
67 |
|
68 |
|
69 |
-- |
70 |
gentoo-commits@g.o mailing list |