Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!apple!sun-barr!newstop!texsun!csccat!dalnet!dlss2!james From: james@dlss2.UUCP (James Cummings) Newsgroups: alt.sources.d Subject: Re: v11i020: Idle demon Message-ID: <78@dlss2.UUCP> Date: 23 Aug 90 19:50:10 GMT References: <77@dlss2.UUCP> <1990Aug23.051212.24281@zorch.SF-Bay.ORG> Reply-To: james@dlss2.UUCP (James Cummings) Organization: RedRock Development Lines: 31 In article <1990Aug23.051212.24281@zorch.SF-Bay.ORG> xanthian@zorch.SF-Bay.ORG (Kent Paul Dolan) writes: >I gave up looking about 35% of the way through the code; do you anywhere >protect against killing a user during downloads, when the terminal would >normally be idle for long (up to several hours with a slow modem and big >files) periods of time? You're absolutely right!...although I have not tested it in this particular manner, I would think that during a download you WILL accumulate IDLE time that the program will notice. Because of the nature of "cheating" users who use a looping shell program to "fake" a screen activity, I choose to use stat and the utmp log. This would mean that "real" keyboard activity would need to occur to keep idle time from building up. Of course, if it's your machine and you have the control, simply add yourself to the immune file. This makes a point though and if I can find a reasonable way to incorporate a "safety switch for downloading", I'll add that as a patch or new version (you get the fame and glory for the idea). Generally most system administrators want to keep someone from jumping off the system or just getting up from the keyboard and walking off, leaving an active shell behind. Thanks again for the suggestion. -- =+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+ |Disclaimer: | James Cummings | | You can't blame me! | UUCP: | | I'm ignorant! | ..swblat!{texbell!texnet.. | |+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+| swgate!dlss1..}!dlss2!james | |Send flames to: | NET: | | sowc@devnull.com | jc@smunews | | | | =+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+