Re: Ending NSTask doesn't release file handle opened by the task it wraps.

2016-07-21 Thread Graham Cox
> On 22 Jul 2016, at 9:22 AM, Uli Kusterer wrote: > > On 21 Jul 2016, at 17:20, Graham Cox wrote: >> One of my apps uses NSTask to wrap a command line utility that is embedded >> in the same app’s resources. This utility writes files to disk - I have no >> knowledge of which APIs it uses to d

Re: Ending NSTask doesn't release file handle opened by the task it wraps.

2016-07-21 Thread じょいすじょん
> On 22 Jul 2016, at 8:22, Uli Kusterer wrote: > > On 21 Jul 2016, at 17:20, Graham Cox wrote: >> One of my apps uses NSTask to wrap a command line utility that is embedded >> in the same app’s resources. This utility writes files to disk - I have no >> knowledge of which APIs it uses to do t

Re: Ending NSTask doesn't release file handle opened by the task it wraps.

2016-07-21 Thread Uli Kusterer
On 21 Jul 2016, at 17:20, Graham Cox wrote: > One of my apps uses NSTask to wrap a command line utility that is embedded in > the same app’s resources. This utility writes files to disk - I have no > knowledge of which APIs it uses to do this. If the task has ended (and I can > see that the act

Re: Ending NSTask doesn't release file handle opened by the task it wraps.

2016-07-21 Thread Daniel Stenmark
Do you have any NSPipes or NSFileHandles set on the NSTask’s I/O channels? (standardOutput, standardError, and standardInput) Dan > On Jul 21, 2016, at 8:20 AM, Graham Cox wrote: > > One of my apps uses NSTask to wrap a command line utility that is embedded in > the same app’s resources. This

Re: Ending NSTask doesn't release file handle opened by the task it wraps.

2016-07-21 Thread Jens Alfke
That’s strange. I would use the `lsof` tool to figure out which process has that file open. You can also use `fs_usage` while the tool is running to monitor all the filesystem activity on that file. —Jens ___ Cocoa-dev mailing list (Cocoa-dev@lists.ap

Ending NSTask doesn't release file handle opened by the task it wraps.

2016-07-21 Thread Graham Cox
One of my apps uses NSTask to wrap a command line utility that is embedded in the same app’s resources. This utility writes files to disk - I have no knowledge of which APIs it uses to do this. If the task has ended (and I can see that the actual instance of the running command line tool has dis