• 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
App fails to kill NSTask processes
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

App fails to kill NSTask processes


  • Subject: App fails to kill NSTask processes
  • From: Alexander Reichstadt <email@hidden>
  • Date: Tue, 15 Apr 2008 12:55:35 +0200

Hi,

my app makes heavy use of NSTask. The tool it nstasks oftentimes falls asleep and doesn't return, I can't fix it cause I don't have the source code.
Til Tiger I worked around this behavior by making a custom class that contains an NSTask and a thread, run the task, and let the thread sleepUntilDate for a few seconds, then have the thread check on the task and if it is dead kill it. That worked fine. But ever since Leopard that doesn't work any more, neither main thread nor any other thread can terminate the task or sigkill it, it continues hanging around in the system. Only when I quit the app, it being the ppid of all the dead processes, does it take the dead processes with it. How can I kill those processes in Leopard?


Regards
Alexander Reichstadt
email@hidden



Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: App fails to kill NSTask processes
      • From: Ken Thomases <email@hidden>
  • Prev by Date: Re: How to fetch remote file?
  • Next by Date: Re: App fails to kill NSTask processes
  • Previous by thread: Re: How to fetch remote file?
  • Next by thread: Re: App fails to kill NSTask processes
  • Index(es):
    • Date
    • Thread