<div dir="ltr"><div class="gmail_quote"><div>Hi Cyril,</div><div>I sent a v5 with changes based on your comments.</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">* I'm failing to see why we need to block SIGALRM just before alarm(0)<br>
  as far as I can tell it's completely useless. Also blocking signals<br>
  while we refork looks questionable.<br></blockquote><div><br></div><div>Is the reason it's blocking signals while reforking is due to the second choice in <a href="https://man7.org/linux/man-pages/man7/signal-safety.7.html">https://man7.org/linux/man-pages/man7/signal-safety.7.html</a>?  I'm not familiar with signal handling.</div><div>```</div><div>Block signal delivery in the main program when calling<br>functions that are unsafe or operating on global data that is<br>also accessed by the signal handler.<br></div><div>```<br></div><div><br></div><div>Thanks,</div><div>Edward</div></div></div>