• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Can't End A Process
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Can't End A Process
      • From: Pontus Ilbring <email@hidden>
  • Prev by Date: Custom PopUpButton: IB Connection not holding at runtime
  • Next by Date: Re: path name from Apple Event
  • Previous by thread: Custom PopUpButton: IB Connection not holding at runtime
  • Next by thread: Re: Can't End A Process
  • Index(es):
    • Date
    • Thread