<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Sat, Jul 12, 2014 at 7:54 PM, Vasili I. Galchin <span dir="ltr"><<a href="mailto:vigalchin@gmail.com" target="_blank">vigalchin@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=":26f" class="a3s" style="overflow:hidden">--  these two lines are non-thread safe     .. yes?? to be thread-safe<br>

the  above line and the following line would have to be together<br>
atomic ....<br></div></blockquote></div><br>Not even then would it really be safe; it should trap the exception from readFile failing, instead of checking existence in a separate step.<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>