summaryrefslogtreecommitdiff
path: root/man
diff options
context:
space:
mode:
Diffstat (limited to 'man')
-rw-r--r--man/XSetErrorHandler.man12
1 files changed, 9 insertions, 3 deletions
diff --git a/man/XSetErrorHandler.man b/man/XSetErrorHandler.man
index 6ab5ae46..2f30420f 100644
--- a/man/XSetErrorHandler.man
+++ b/man/XSetErrorHandler.man
@@ -47,7 +47,7 @@
.ds xC Inter-Client Communication Conventions Manual
.TH XSetErrorHandler __libmansuffix__ __xorgversion__ "XLIB FUNCTIONS"
.SH NAME
-XSetErrorHandler, XGetErrorText, XDisplayName, XSetIOErrorHandler, XGetErrorDatabaseText \- default error handlers
+XSetErrorHandler, XGetErrorText, XDisplayName, XSetIOErrorHandler, XSetIOErrorExitHandler, XGetErrorDatabaseText \- default error handlers
.SH SYNTAX
.HP
int (*XSetErrorHandler\^(\^int (\^*\^\fIhandler\fP\^)\^(Display *, XErrorEvent
@@ -61,6 +61,10 @@ char *XDisplayName\^(\^_Xconst char *\fIstring\fP\^);
int (*XSetIOErrorHandler\^(\^int (\^*\^\fIhandler\fP\^)(Display
*)\^)\^)\^(\^);
.HP
+void (*XSetIOErrorExitHandler\^(Display
+*\fIdisplay\fP\^, void (\^*\^\fIhandler\fP\^)(Display *, void
+*)\^, void *\fIuser_data\fP)\^)\^(\^);
+.HP
int XGetErrorDatabaseText\^(\^Display *\fIdisplay\fP\^, _Xconst char *\fIname\fP, _Xconst char
*\fImessage\fP\^, _Xconst char *\fIdefault_string\fP\^, char *\fIbuffer_return\fP\^,
int \fIlength\fP\^);
@@ -136,9 +140,11 @@ sets the fatal I/O error handler.
Xlib calls the program's supplied error handler if any sort of system call
error occurs (for example, the connection to the server was lost).
This is assumed to be a fatal condition,
-and the called routine should not return.
+and the called routine should normally not return.
If the I/O error handler does return,
-the client process exits.
+the client process exits by default, this behavior may be altered with the
+.BR XSetIOErrorExitHandler
+function.
.LP
Note that the previous error handler is returned.
.LP