NAME
XSetIOErrorHandler − set a nonfatal error event handler.
Synopsis
In Release 3:
XSetIOErrorHandler(handler)
int (* handler)(Display *, XErrorEvent *)
In Release 4 and Release 5:
int (*XSetIOErrorHandler(handler))()
int (* handler)(Display *, XErrorEvent *)
Arguments
handlerSpecifies user-defined fatal error handling routine. If NULL, reinvoke the default fatal error handler.
Description
XSetIOErrorHandler() 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 Release 5, XSetIOErrorHandler() returns a pointer to the previous error handler. For more information, see Volume One, Chapter 3, Basic Window Program.
See Also
XGetErrorDatabaseText(), XGetErrorText(), XSetAfterFunction(), XSetErrorHandler(), XSynchronize().
Copyright O’Reilly & Assoc. —