XSetIOErrorHandler()XSetIOErrorHandler()NameXSetIOErrorHandler – set a fatal error handler.
Synopsis
int (*XSetIOErrorHandler(handler))()
int (* handler)(Display *)
Arguments
handler Specifies user-defined fatal error handling routine. If
NULL, reinvoke the default fatal error handler.
DescriptionXSetIOErrorHandler() specifies a user-defined error handling routine
for fatal errors. This error handler will be called by Xlib if any
sort of system call error occurs, such as the connection to the server
being lost. The called routine should not return. If the I/O error
handler does return, the client process will exit.
If handler is a NULL pointer, the default error handler is reinstated.
The default I/O error handler prints an error message and exits.
In Release 4 and later, XSetIOErrorHandler() returns a pointer to the
previous error handler.
For more information, see Volume One, Chapter 3, Basic Window Program.
See AlsoXDisplayName(), XGetErrorDatabaseText(), XGetErrorText(), XSetAfter‐
Function(), XSetErrorHandler(), XSynchronize().
Xlib - Error Handling XSetIOErrorHandler()