Re: NSTask objectalloc problem
Re: NSTask objectalloc problem
- Subject: Re: NSTask objectalloc problem
- From: Shawn Erickson <email@hidden>
- Date: Thu, 29 Apr 2010 19:56:17 -0700
On Thu, Apr 29, 2010 at 6:04 PM, Tom Foutz <email@hidden> wrote:
> Worked like a charm. I used waitUntilExit, and the number of living
> objects dropped immediately. Thanks!
Note calling waitUntilExit without also draining stdout/err of the
running process _could_ cause you problems. If the process you run
outputs enough information into one of those two pipes, enough to fill
the pipe's buffer, the process will not exit because it will block
wanting to write more data into the pipe. This would cause the thread
in your process to block on waitUntilExit... wedged.
So either you need to drain those pipes in a thread not blocked on
waitUntilExit or you need to be sure that the process you launch wont
fill the pipe.
-Shawn
_______________________________________________
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