Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 1 Feb 2007 12:57:41 -0700
From:      "Andrew Falanga" <af300wsm@gmail.com>
To:        "Fabian Keil" <freebsd-listen@fabiankeil.de>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: ps oddity
Message-ID:  <340a29540702011157w3fef8fe6wb078a9c9e5952631@mail.gmail.com>
In-Reply-To: <20070201192751.39e5a32d@localhost>
References:  <340a29540702011007mcdb45bcya1db8732d78ecd34@mail.gmail.com> <20070201192751.39e5a32d@localhost>

next in thread | previous in thread | raw e-mail | index | archive | help
On 2/1/07, Fabian Keil <freebsd-listen@fabiankeil.de> wrote:
>
> "Andrew Falanga" <af300wsm@gmail.com> 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 <user> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?340a29540702011157w3fef8fe6wb078a9c9e5952631>