<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1252"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">Hi again,<div><br><div><div>Am 21.04.2014 um 22:56 schrieb Eliot Miranda &lt;<a href="mailto:eliot.miranda@gmail.com">eliot.miranda@gmail.com</a>&gt;:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div dir="ltr">Hi&nbsp;Andreas,<br><div class="gmail_extra"><br><br><div class="gmail_quote">On Sat, Apr 19, 2014 at 2:52 PM, Andreas Wacknitz <span dir="ltr">&lt;<a href="mailto:a.wacknitz@gmx.de" target="_blank">a.wacknitz@gmx.de</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0px 0px 0px 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; position: static; z-index: auto;">&nbsp;<br><div style="word-wrap:break-word">Hi Eliot,<div><br></div>
<div>Today I was able to work on this problem again. Alas heartbeat_handler() in sqUnixTimerHeartbeat.c is not called automatically as it should be.</div><div>Only if I trigger an external ALRM signal (by means of signal -ALRM &lt;pid&gt;) it’s being called. I wasn’t able to find out how the trigger for it is being</div>
<div>set. </div></div></blockquote><div><br></div><div>Hmmm. &nbsp;In sqUnixTimerHeartbeat.c::ioInitHeartbeat() there's a sigaction call that establishes heartbeat_handle as the handler for SIGALRM. &nbsp;Perhaps on FreeBSD or OpenSolaris you need to rearm the signal handler on each delivery? &nbsp;But perhaps there's a flag you can set in the sigaction that avoids having to do this.</div>
<div><br></div><div>&nbsp;</div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div style="word-wrap:break-word">
<div>The only place I found a nanosleep() call was in block() in sqUnixMain.c.</div></div></blockquote><div><br></div><div>See the nanosleep in sqUnixHeartbeat.c::beatStateMachine.</div></div></div></div></blockquote><div>Now I have a clue why I didn’t see it before. If ITIMER_HEARTBEAT is set then all functionality is in sqUnixITimerHeartbeat.c and there is no nanosleep call there…</div><div><br></div><div>Regards,</div><div>Andreas</div></div></div></body></html>