[swift-corelibs-dev] NSTask and try!

James Lee james at jelee.co.uk
Sat May 14 14:05:52 CDT 2016


Cheers for the clarification. I will spend some time working through some of the other failures, should help me get to grips with it all :)

James

Sent from my iPhone

> On 14 May 2016, at 15:02, Bouke Haarsma via swift-corelibs-dev <swift-corelibs-dev at swift.org> wrote:
> 
> On 2016-05-14 09:05:08 +0000, James Lee via swift-corelibs-dev said:
> 
> 
> 
> Please excuse my ignorance, I have looked into the POSIX calls, but am I right in assuming that the EBADF is due to the test calling to a file that doesn't exist and that is just how OSX handles this case?
> 
> 
> 
> The problem on OSX was that closing the same FD in the child process would result in the EBADF. The change in the error handling posted before made the error more visible. The actual fix for OSX was to make sure a single FD was closed only once. See also PR #363 https://github.com/apple/swift-corelibs-foundation/pull/362, especially https://github.com/apple/swift-corelibs-foundation/pull/363/commits/3fd0df28107847b7121f6cb2f823fbad9e2ddcff.
> 
> 
> 
> - Bouke
> 
> _______________________________________________
> swift-corelibs-dev mailing list
> swift-corelibs-dev at swift.org
> https://lists.swift.org/mailman/listinfo/swift-corelibs-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-corelibs-dev/attachments/20160514/80d5f6fc/attachment.html>


More information about the swift-corelibs-dev mailing list