<div dir="ltr">On Sat, Oct 26, 2013 at 11:38 AM, Donn Cave <span dir="ltr"><<a href="mailto:donn@avvanta.com" target="_blank">donn@avvanta.com</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Question about the syscall trace -- in the second, threaded version,<br>
<div class="im"><br>
> [pid 11612] fcntl(7, F_SETLK, {type=F_WRLCK, whence=SEEK_SET, start=0, len=0}) = 0<br>
</div>...<br>
<div class="im">> [pid 11612] +++ exited with 0 +++<br>
<br>
</div>?? In the not threaded version, I don't see the child process exit - and<br>
wasn't expecting to, since it's supposed to have exec'd to /usr/bin/sleep.<br></blockquote><div><br></div><div>You don't see it in the non-threaded one because the parent throws an exception while setting the lock and exits first. The sleep is only 5 seconds, so the second one reaches waitForProcess and collects it (note that the "parent: fail!" is a putStrLn, not an error) before exiting.</div>
<div><br></div></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>