timer Prevent further SIGALRM signals when timer is stopped
[bertos.git] / bertos / emul / timer_posix.c
index d54c61205c33c73c5b78ce2915eb80b2f280ae96..70990a21afd551fb828c436a85381a4d6b0cc425 100644 (file)
@@ -82,6 +82,7 @@ static void timer_hw_cleanup(void)
                { 0, 0 }  /* it_value */
        };
        setitimer(ITIMER_REAL, &itv, NULL);
+       signal(SIGALRM, SIG_DFL);
 }
 
 INLINE hptime_t timer_hw_hpread(void)