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 PROTECTED]



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

_______________________________________________

Cocoa-dev mailing list ([email protected])

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to