From owner-freebsd-questions@FreeBSD.ORG Thu Feb 1 18:27:55 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 D16E316A408 for ; Thu, 1 Feb 2007 18:27:55 +0000 (UTC) (envelope-from freebsd-listen@fabiankeil.de) Received: from smtprelay05.ispgateway.de (smtprelay05.ispgateway.de [80.67.18.43]) by mx1.freebsd.org (Postfix) with ESMTP id 47CD913C47E for ; Thu, 1 Feb 2007 18:27:55 +0000 (UTC) (envelope-from freebsd-listen@fabiankeil.de) Received: (qmail 28063 invoked from network); 1 Feb 2007 18:27:53 -0000 Received: from unknown (HELO localhost) (775067@[217.50.150.85]) (envelope-sender ) by smtprelay05.ispgateway.de (qmail-ldap-1.03) with SMTP for ; 1 Feb 2007 18:27:53 -0000 Date: Thu, 1 Feb 2007 19:27:51 +0100 From: Fabian Keil To: freebsd-questions@freebsd.org Message-ID: <20070201192751.39e5a32d@localhost> In-Reply-To: <340a29540702011007mcdb45bcya1db8732d78ecd34@mail.gmail.com> References: <340a29540702011007mcdb45bcya1db8732d78ecd34@mail.gmail.com> X-Mailer: Claws Mail 2.6.1 (GTK+ 2.10.6; i386-portbld-freebsd6.2) X-PGP-KEY-URL: http://www.fabiankeil.de/gpg-keys/freebsd-listen-2008-08-18.asc Mime-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_12.Sry8CcR=SMrFAsFFRovL"; protocol="application/pgp-signature"; micalg=PGP-SHA1 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 18:27:55 -0000 --Sig_12.Sry8CcR=SMrFAsFFRovL Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable "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 dae= mon > mode, ps -aux | grep would show me the daemon process. However, n= ow > 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 --Sig_12.Sry8CcR=SMrFAsFFRovL Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (FreeBSD) iD8DBQFFwjEnBYqIVf93VJ0RAn3aAJ4huji3E/NpsIk+iJ4Sn4xyKPCHlgCgjyrc lw8EqfysuBDKtUzMMC8KhyU= =5Dib -----END PGP SIGNATURE----- --Sig_12.Sry8CcR=SMrFAsFFRovL--