Can't End A Process
Can't End A Process
- Subject: Can't End A Process
- From: Ryan Raaum <email@hidden>
- Date: Mon, 15 Aug 2005 10:39:50 -0400
Hello,
I've started a unix daemon using NSTask - launched it and released it.
I can get the pid of the process, and I'm trying to use 'kill' in an
NSTask to end the process, but I get
kill: illegal process id: 2469
as a debug message when I try. I have the correct pid...
2469 ?? S 0:00.03 /Library/lighttpd/sbin/lighttpd
and I can kill it from the command line without any problems
I'm not holding on to the NSTask to terminate it that way because I
want to be able to launch the daemon, quit the program, start up the
program at some later time and be able to end the daemon (If it's
possible to hold onto the NSTask through all that - that would work
fine too).
Does anyone know why what I'm doing isn't working? or a better solution?
Thanks very much,
Ryan
_______________________________________________
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