App fails to kill NSTask processes
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