*BSD News Article 34989


Return to BSD News archive

Xref: sserve comp.os.386bsd.misc:3402 comp.os.386bsd.questions:12688
Path: sserve!newshost.anu.edu.au!harbinger.cc.monash.edu.au!bunyip.cc.uq.oz.au!munnari.oz.au!news.Hawaii.Edu!ames!hookup!swrinde!howland.reston.ans.net!math.ohio-state.edu!magnus.acs.ohio-state.edu!cis.ohio-state.edu!bounce-bounce
From: wood@cis.ohio-state.edu (joel braden wood)
Newsgroups: comp.os.386bsd.misc,comp.os.386bsd.questions
Subject: Killing idle telnet sessions
Date: 18 Aug 1994 11:26:06 -0400
Organization: The Ohio State University Dept. of Computer and Info. Science
Lines: 29
Distribution: world
Message-ID: <32vuieINNg4s@soccer.cis.ohio-state.edu>
NNTP-Posting-Host: soccer.cis.ohio-state.edu

When someone on my machine losses connection without logging off, and they're
in a telnet session.  The telnet session isn't killed and starts to hog
cpu time.  Is there a way to check for idle telnet sessions and kill them
after so long???

Joel B Wood
wood@cis.ohio-state.edu

ps Still can't access > 16 megs of ram.

USER       PID %CPU %MEM   VSZ  RSS TT  STAT STARTED       TIME COMMAND
(user)     700 93.2  3.4   232  496 p0- RNU  11:39PM  678:15.33 telnet localhos
root      1341  0.0  3.4   188  488 ??  S    12:02PM    0:00.30 telnetd
root      1336  0.0  2.9   152  420 v0  Is+  11:59AM    0:00.05 /usr/libexec/ge
root      1333  0.0  2.9   152  420 v1  Is+  11:58AM    0:00.07 /usr/libexec/ge
root        89  0.0  2.7   152  392 v2  Is+  Tue11AM    0:00.07 /usr/libexec/ge
root        70  0.0  1.6   184  232 ??  Is   Tue11AM    0:00.44 inetd
root        67  0.0  2.6   492  380 ??  Is   Tue11AM    0:02.07 sendmail: accep
root        63  0.0  1.3   192  176 ??  Is   Tue11AM    0:00.05 lpd
root        56  0.0  1.2   184  164 ??  Is   Tue11AM    0:00.03 routed -q
root        52  0.0  1.4   172  196 ??  Is   Tue11AM    0:00.10 portmap
root        49  0.0  2.0   252  288 ??  Is   Tue11AM    0:00.65 cron
root        35  0.0  2.1   184  304 ??  Is   Tue11AM    0:00.55 syslogd
root         3  0.0  0.1     0   12 ??  DL   Tue11AM    0:14.02  (update)
root         2  0.0  0.1     0   12 ??  DL   Tue11AM    0:00.51  (pagedaemon)
root         1  0.0  1.0   336  136 ??  Is   Tue11AM    0:00.13 init --
root         0  0.0  0.1     0    0 ??  DLs  Tue11AM    0:00.17  (swapper)