<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Jun 15, 2014 at 8:15 PM, Ian Wadham <span dir="ltr"><<a href="mailto:iandw.au@gmail.com" target="_blank">iandw.au@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div id=":45k" class="a3s" style="overflow:hidden">Later the the FDs get closed anyway and it works then, perhaps because<br>
the app gets issued with a STOP.<br></div></blockquote></div><br>Unix closes all fd-s at process exit (including abnormal exit) anyway; closing them preemptively like that doesn't make a whole lot of sense. The normal time you need such code is after a fork() and before exec() to avoid leaking file descriptors to a child that won't know they're even there.<br clear="all">
<div><br></div>-- <br><div dir="ltr"><div>brandon s allbery kf8nh sine nomine associates</div><div><a href="mailto:allbery.b@gmail.com" target="_blank">allbery.b@gmail.com</a> <a href="mailto:ballbery@sinenomine.net" target="_blank">ballbery@sinenomine.net</a></div>
<div>unix, openafs, kerberos, infrastructure, xmonad <a href="http://sinenomine.net" target="_blank">http://sinenomine.net</a></div></div>
</div></div>