Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83; site brl-vgr.ARPA Path: utzoo!watmath!clyde!akgua!sdcsvax!sdcrdcf!hplabs!hao!seismo!brl-tgr!brl-vgr!gwyn From: gwyn@brl-vgr.ARPA (Doug Gwyn ) Newsgroups: net.unix-wizards Subject: Re: Auto-logoff facility in Unix Message-ID: <1415@brl-vgr.ARPA> Date: Sat, 12-May-84 01:35:49 EDT Article-I.D.: brl-vgr.1415 Posted: Sat May 12 01:35:49 1984 Date-Received: Wed, 9-May-84 03:26:37 EDT References: <379@hcrvax.UUCP>, <1209@brl-vgr.ARPA>, <885@elsie.UUCP>, <1260@brl-vgr.ARPA>, <895@elsie.UUCP> Organization: Ballistics Research Lab Lines: 19 sh TIMEOUT was already present when I arrived at BRL, so I am not sure of all the reasons for doing it this way. One major factor I am sure of is that the shell has the information it needs to decide that the user has fallen asleep (lack of response to PS1), whereas any other approach to logging off an idle terminal would seem to involve peeking inside the kernel or running "ps" periodically to see whether anything had been accomplished by the user's processes recently. Doing this in the shell seems cleaner. Note that this is not intended to be an absolute guarantee that an idle terminal will be forced to log off, and we even let the user choose the timeout interval or turn off the feature altogether. The sh TIMEOUT is not foolproof, since &-detached processes are not checked and may therefore get sent a SIGHUP when the shell times out. This could obviously be fixed, but it seems to be a rare problem given that the default timeout interval is 30 minutes and that we have a BATCH facility (part of the MDQS spooling system, works really well).