int (*XSetIOErrorHandler(handler))()
int (*handler)(Display *);
Arguments
handler
Specifies the program's supplied error handler.
Description
The
XSetIOErrorHandler()
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.
If the I/O error handler does return,
the client process exits.