From owner-freebsd-questions Wed Apr 28 7:41:14 1999 Delivered-To: freebsd-questions@freebsd.org Received: from emerald.ts.ee (emerald.ts.ee [194.204.16.66]) by hub.freebsd.org (Postfix) with ESMTP id A5ED614E34 for ; Wed, 28 Apr 1999 07:41:00 -0700 (PDT) (envelope-from r.jemets@ts.ee) Received: from vegas.sadam (vegas.sadam [192.168.10.250]) by emerald.ts.ee (8.8.3/8.7.3) with ESMTP id RAA10115 for ; Wed, 28 Apr 1999 17:40:59 +0300 Received: from white (rjemets.sadam [192.168.10.19]) by vegas.sadam (8.8.7/8.8.7) with SMTP id RAA01358 for ; Wed, 28 Apr 1999 17:40:57 +0300 Message-Id: <3.0.6.32.19990428174205.00bad710@vegas> X-Sender: r.jemets@vegas X-Mailer: QUALCOMM Windows Eudora Light Version 3.0.6 (32) Date: Wed, 28 Apr 1999 17:42:05 +0300 To: freebsd-questions@freebsd.org From: Roman Jemets Subject: Re: purge ttys In-Reply-To: <372718E0.98E3350B@ocsny.com> References: <3.0.6.32.19990428171212.00d4ea30@vegas> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG >if you do a > >last | grep still > >or w > >you get the ttys of users > >then if i > >ps aux | grep ttypd > >for example > >i come up empty > >no PIDS > >and i believe that is because these old disconnects are idle backgrounds > >pete As I understand, that means wtmp logout record isn't created and utmp record isn't cleared by some reason, one of which may be abnormal shell termination. ps should *always* show the real number of processes and terminals to which they are connected. Init process should clear utmp records eventually, I guess. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message