From owner-freebsd-questions@FreeBSD.ORG Wed Sep 10 15:42:35 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D5A98106564A for ; Wed, 10 Sep 2008 15:42:35 +0000 (UTC) (envelope-from paul+fbsd@it.ca) Received: from mail.it.ca (mail.it.ca [216.235.7.67]) by mx1.freebsd.org (Postfix) with ESMTP id 7A0528FC1C for ; Wed, 10 Sep 2008 15:42:35 +0000 (UTC) (envelope-from paul+fbsd@it.ca) Received: from mail.it.ca (paul@mail [216.235.7.67]) by mail.it.ca (8.13.3/8.13.3) with ESMTP id m8AFgYHF093841; Wed, 10 Sep 2008 11:42:34 -0400 (EDT) (envelope-from paul+fbsd@it.ca) DomainKey-Signature: a=rsa-sha1; s=a; d=it.ca; c=nofws; q=dns; h=received:x-authentication-warning:date:from:to:cc:subject: message-id:reply-to:references:mime-version:content-type: content-disposition:in-reply-to:user-agent; b=Ad+NSZzTOMfC+FrDOEo5YdAf8Llbwa+vCrJeZW/baGpv23BgPzAQUgJWR+GaiR7et J4dPCw15O4GYAlRRB8zKGnoqKvzUBhUDeAwdG4jFi7QTGrbI3K/Bp7MkHsF0a0u Received: (from paul@localhost) by mail.it.ca (8.13.3/8.13.3/Submit) id m8AFgYee093840; Wed, 10 Sep 2008 11:42:34 -0400 (EDT) (envelope-from paul+fbsd@it.ca) X-Authentication-Warning: mail.it.ca: paul set sender to paul+fbsd@it.ca using -f Date: Wed, 10 Sep 2008 11:42:33 -0400 From: Paul Chvostek To: John Almberg Message-ID: <20080910154233.GA7937@it.ca> References: <2E311D07-5DC9-43FF-9EEF-C56B620A632B@identry.com> <48B9FD43.1070508@magidesign.com> <3761D93C-F42B-48AC-9295-DFE0E11527DE@identry.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3761D93C-F42B-48AC-9295-DFE0E11527DE@identry.com> User-Agent: Mutt/1.5.12-2006-07-14 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-3.0 (mail.it.ca [216.235.7.67]); Wed, 10 Sep 2008 11:42:34 -0400 (EDT) Cc: freebsd-questions@freebsd.org Subject: Re: Why the extra shells? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd-questions@freebsd.org List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 10 Sep 2008 15:42:35 -0000 Hi John, On Mon, Sep 01, 2008 at 08:43:49AM -0400, John Almberg wrote: > > This is my main concern at the moment... I am wondering if I killed > off an essential process when I killed off those shells... Probably not. Your `ps` output was: [on:~]> ps PID TT STAT TIME COMMAND 30350 p0 Ss 0:00.03 -bash (bash) 30761 p0 R+ 0:00.00 ps 99069 p1 Is+ 0:00.01 /usr/local/bin/bash 79966 p3 Is 0:00.01 /usr/local/bin/bash 27050 p4 Is+ 0:00.01 /usr/local/bin/bash 45342 p5 Is+ 0:00.01 /usr/local/bin/bash The fact that your shells all have a small TIME column indicates that they're not very active. This is a good thing. The "I" under STAT means it's an idle process, and the fact that it's attached to a tty means it was started on a terminal. The ones with a "+" are foreground processes on their ttys. I'd guess that these could be shells processes that were never killed off when their terminals were closed, but you can find out a little more about them, once you get some more of them showing up. `ps Olstart` will show you the date/time that a process was started. You can compare this to the output of `last` to see if the dates and ttys match up with your logins. If they don't match up, they're probably not login shells, and more investigation is required, possibly by using things like `ps uwwtp1` for the shell on p1. This will give you ALL the processes on that TTY, including anything that might have been launched by bash (and therefore possibly subject to a HUP sent by the shell as you kill it). p -- Paul Chvostek it.canada http://www.it.ca/