T.R | Title | User | Personal Name | Date | Lines |
---|
1801.1 | try using xsetioerrorhandler | STAR::BROUILLETTE | | Tue Nov 28 1989 17:08 | 6 |
|
When the session manager resets the server, your connection is broken.
You could set up an XIO error event handler. Use XSetIOErrorHandler.
The routine you specify will be called when the connection is broken
and you can do your clean up work there.
|
1801.2 | | PSW::WINALSKI | Careful with that VAX, Eugene | Tue Nov 28 1989 21:57 | 6 |
| Under VMS, you can declare an exit handler for your program so that if it is
terminated, the exit handler gets control. See the $DCLEXH system service
description in the doc set. Of course, that won't work if the Session Manager
terminates applications using $DELPRC.
--PSW
|
1801.3 | | TOSSU3::CREMASCO | | Wed Nov 29 1989 08:48 | 7 |
| Many thanks for your answers. I try now.
Do you know if the session manager use realy the $DELPRC?
RoC.
|
1801.4 | Session Manager does not use $DELPRC | STAR::VATNE | Peter Vatne, VMS Development | Wed Nov 29 1989 12:02 | 8 |
| The session manager does not use $DELPRC to terminate applications. The
applications can be running anywhere on the network. The session manager
sends a message to the server to disconnect all clients. When the server
closes the connection, the client on the other end of the connection will
receive an error inside Xlib.
Either Karen's or Paul's suggestions will work, but I would go with Karen's
suggestion, as I believe XSetIOErrorHandler is transportable.
|