Path: utzoo!attcan!uunet!snorkelwacker!bloom-beacon!EXPO.LCS.MIT.EDU!rws From: rws@EXPO.LCS.MIT.EDU (Bob Scheifler) Newsgroups: comp.windows.x Subject: Re: What is distinction between close-down modes? Message-ID: <9002201410.AA02166@expire.lcs.mit.edu> Date: 20 Feb 90 14:10:27 GMT References: <4281@quanta.eng.ohio-state.edu> Sender: daemon@athena.mit.edu (Mr Background) Organization: The Internet Lines: 38 Is there any distinction between close-down modes RetainTemporary and RetainPermanent? Technically, the only difference is KillClient with AllTemporary. RetainTemporary is something of a hack. The intention in putting it in originally was for "debugging" of a sort; if you have a program that terminates abnormally, you might want to start it with RetainTemporary so that when it terminates the resources (e.g. the current window state) stay around so you can see where it was at the time, then issue a KillClient with AllTemporary to clean up. On the other hand, RetainPermanent is for "real" use, e.g. xsetroot uses it to retain colormap entries used for the root background. I wrote a program that is run by the DECW$SYLOGIN script which automatically gives the user access from the workstation's boot server, via a call to XAddHost. Forgive me, I know not VMS. It soon became apparent that the running of this program sporatically caused logins to abort, blanking the screen and returning to the login window. If it's the first connection to the server, yes, this would happen, because the server resets automatically when the last connection closes normally. If it's sporadic, it sounds like it's running in parallel with other connections. I modified the program so that it sets close-down mode to RetainTemporary and the login aborts stopped ocurring. Yes, that's one possible solution. In a "normal" environment, we envisioned that "the system" always established the first connection to the server, and maintained it for the duration of the session. E.g., xinit and xdm both do this. As such, it isn't necessary for "user" session setup commands to use RetainPermanent. But, I'm not familiar enough with the VMS environment to know what the situation is there.