note
afoken
<blockquote>I have [a] [...] script that [...] sleeps [...] If I add an ALRM signal handler, the ALRM stops working</blockquote>
<p>One problem is in the man page [man://sleep;3|sleep(3)], at least on Linux:</p>
<blockquote>
<p><b>Bugs</b></p>
<p><c>sleep()</c> may be implemented using <c>SIGALRM</c>; mixing calls to <c>alarm(2)</c> and <c>sleep()</c> is a bad idea.</p>
<p>Using <c>longjmp(3)</c> from a signal handler or modifying the handling of <c>SIGALRM</c> while sleeping will cause undefined results. </p>
</blockquote>
<hr>
<blockquote>program keeps running!!!! Any thoughts?</blockquote>
<p>[https://wiki.lspace.org/mediawiki/Multiple_exclamation_marks|Multiple exclamation marks] ...</p>
<p>Alexander</p>
<div class="pmsig"><div class="pmsig-747201">
--<br>
Today I will gladly share my knowledge and experience, for there are no sweeter words than "I told you so". ;-)
</div></div>
11111522
11111522