From owner-freebsd-questions@FreeBSD.ORG Thu Feb 1 19:57:42 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 52A5A16A407 for ; Thu, 1 Feb 2007 19:57:42 +0000 (UTC) (envelope-from af300wsm@gmail.com) Received: from py-out-1112.google.com (py-out-1112.google.com [64.233.166.183]) by mx1.freebsd.org (Postfix) with ESMTP id 1767F13C442 for ; Thu, 1 Feb 2007 19:57:41 +0000 (UTC) (envelope-from af300wsm@gmail.com) Received: by py-out-1112.google.com with SMTP id f47so320337pye for ; Thu, 01 Feb 2007 11:57:41 -0800 (PST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=Bz7PaY4IZWI6ObLzVIdk3k4kYoUzgAeyYRKleOKwNci4uYsWzDwLbBEMGuHDhQfG0zqQeoQX1strc0Cv9Bq/C9pS6yEsc6bi+OWjJPWL3u7Il8QGwJYo8N3Upr39GRWULSUKfjfUyH6VUpzmuPQZv5xMn6w3O8EEpSeLB5JzxwU= Received: by 10.35.39.13 with SMTP id r13mr4906838pyj.1170359861489; Thu, 01 Feb 2007 11:57:41 -0800 (PST) Received: by 10.35.94.9 with HTTP; Thu, 1 Feb 2007 11:57:41 -0800 (PST) Message-ID: <340a29540702011157w3fef8fe6wb078a9c9e5952631@mail.gmail.com> Date: Thu, 1 Feb 2007 12:57:41 -0700 From: "Andrew Falanga" To: "Fabian Keil" In-Reply-To: <20070201192751.39e5a32d@localhost> MIME-Version: 1.0 References: <340a29540702011007mcdb45bcya1db8732d78ecd34@mail.gmail.com> <20070201192751.39e5a32d@localhost> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-questions@freebsd.org Subject: Re: ps oddity X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Feb 2007 19:57:42 -0000 On 2/1/07, Fabian Keil wrote: > > "Andrew Falanga" wrote: > > > A couple of months ago I wrote a daemon process that opens up > connections on > > TCP and listens for incoming data (that ultimately ends up in a > database). > > Now, when I was writing it, I was debugging and what not under my own > user > > id. However, the program now runs as root because it's started > > automatically when the system comes up at boot time. > > That alone doesn't sound like a particular good reason to me. > > > Now, here's the strange part. When running under my user id, even in > daemon > > mode, ps -aux | grep would show me the daemon process. However, > now > > that it's running as root, it doesn't. > > Does ps -aux really no longer list the process, > or does it get lost after the grep? > > Fabian > > > I do not believe so. When I did the same ps | grep command when running the program under my userid, I would see matches for both the program and for the grep. Andy