Re: Killing a daemon process
Re: Killing a daemon process
- Subject: Re: Killing a daemon process
- From: Tom Harrington <email@hidden>
- Date: Thu, 20 Oct 2005 15:18:01 -0600
On 10/20/05, email@hidden <email@hidden> wrote:
> My application changes some of the config files for a daemon process. In order for the changes to take affect I need to stop and restart the process. The way I have it working now is I open the .pid file get the number and run the kill command through AuthorizationExecuteWithPrivileges().
> The problem is on older OS X versions (10.3.4) this .pid file does not exist. Is there an easier way to kill a root process, or get the PID for it?
I don't think there's any Cocoa way. You could use sysctl(3) to look
up the process by name, or else try parsing the output of /bin/ps.
--
Tom Harrington
email@hidden
AIM: atomicbird1
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden