Re: Does waitUntilExit really mean that?
Re: Does waitUntilExit really mean that?
- Subject: Re: Does waitUntilExit really mean that?
- From: Ken Thomases <email@hidden>
- Date: Mon, 6 Apr 2009 23:29:20 -0500
On Apr 6, 2009, at 11:02 PM, Michael Ash wrote:
If you do insist on running an inner runloop, then you'll need to do
that *first*, before you use waitUntilExit, to avoid the potential
deadlock.
There is no potential deadlock. waitUntilExit is documented as
running the run loop.
Well, there may be a problem if you read from the file handle in a
mode other than the default, as Adam was recommending.
On the other hand, I agree with your recommendation that this sort of
thing should just be done totally asynchronously, in which case it's
fine to do it on the main thread (which might be simpler for some
designs).
Regards,
Ken
_______________________________________________
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