ps oddity

Fabian Keil freebsd-listen at fabiankeil.de
Thu Feb 1 18:27:55 UTC 2007


"Andrew Falanga" <af300wsm at 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20070201/ee7bc0bb/signature.pgp


More information about the freebsd-questions mailing list