[Haskell-cafe] Discussion: The CLOEXEC problem

Brandon Allbery allbery.b at gmail.com
Fri Aug 28 20:14:37 UTC 2015


On Fri, Jul 24, 2015 at 6:29 PM, Alexander Kjeldaas <
alexander.kjeldaas at gmail.com> wrote:

> I think CLOEXEC should be the default, but it doesn't seem to solve your
> problem. What if thread 2 executes "myBinary" before thread 1 called exec()?
>

I think you missed that each thread is using its own temporary directory
--- they're not all running at the same time in the same directory, which
would be pretty much guaranteed to fail.

-- 
brandon s allbery kf8nh                               sine nomine associates
allbery.b at gmail.com                                  ballbery at sinenomine.net
unix, openafs, kerberos, infrastructure, xmonad        http://sinenomine.net
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/haskell-cafe/attachments/20150828/464203b4/attachment-0001.html>


More information about the Haskell-Cafe mailing list