<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta http-equiv="Content-Style-Type" content="text/css">
<title></title>
<meta name="Generator" content="Cocoa HTML Writer">
<meta name="CocoaVersion" content="1404.46">
<style type="text/css">
p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; line-height: 15.0px; font: 12.0px Helvetica}
p.p2 {margin: 0.0px 0.0px 0.0px 0.0px; line-height: 15.0px; font: 12.0px Helvetica; min-height: 14.0px}
p.p3 {margin: 0.0px 0.0px 0.0px 12.0px; line-height: 18.0px; font: 16.0px Helvetica; color: #011892; -webkit-text-stroke: #000000}
p.p4 {margin: 0.0px 0.0px 0.0px 0.0px; line-height: 14.0px; font: 12.0px Helvetica; min-height: 14.0px}
p.p5 {margin: 0.0px 0.0px 0.0px 0.0px; line-height: 14.0px; font: 12.0px Helvetica}
span.s1 {font-kerning: none}
</style>
</head>
<body>
<p class="p1">On 2016-05-14 09:05:08 +0000, James Lee via swift-corelibs-dev said:</p>
<p class="p2"><br></p>
<p class="p3"><span class="s1">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?</span></p>
<p class="p4"><br></p>
<p class="p5">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.</p>
<p class="p4"><br></p>
<p class="p5">- Bouke</p>
</body>
</html>