From owner-freebsd-questions@FreeBSD.ORG Thu Feb 1 18:07:56 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 018AB16A400 for ; Thu, 1 Feb 2007 18:07:56 +0000 (UTC) (envelope-from af300wsm@gmail.com) Received: from py-out-1112.google.com (py-out-1112.google.com [64.233.166.180]) by mx1.freebsd.org (Postfix) with ESMTP id C066A13C461 for ; Thu, 1 Feb 2007 18:07:55 +0000 (UTC) (envelope-from af300wsm@gmail.com) Received: by py-out-1112.google.com with SMTP id f47so304291pye for ; Thu, 01 Feb 2007 10:07:54 -0800 (PST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:mime-version:content-type; b=aq1KRVVCQ9jj9jQFENSV64Ho0Nh8KX23HZORwctkKxvKB/Eq1UzoevmaKw9g2wEjyQSoaNNHyK/+bAgcatfHRzemocJ7QH9oQbCU1NZLvYyjHhD6GIof5lRVESerToC1eKyYl70yeKFcDrXc0TX/dtC+4ASkETLki+V/yq2fa1c= Received: by 10.35.17.12 with SMTP id u12mr4684856pyi.1170353274773; Thu, 01 Feb 2007 10:07:54 -0800 (PST) Received: by 10.35.94.9 with HTTP; Thu, 1 Feb 2007 10:07:54 -0800 (PST) Message-ID: <340a29540702011007mcdb45bcya1db8732d78ecd34@mail.gmail.com> Date: Thu, 1 Feb 2007 11:07:54 -0700 From: "Andrew Falanga" To: freebsd-questions MIME-Version: 1.0 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 Subject: 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:07:56 -0000 Hi, 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. 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. Why is that? The only way I've been able to tell that it's running is by using sockstat. Andy