timer Prevent further SIGALRM signals when timer is stopped
authorbernie <bernie@38d2e660-2303-0410-9eaa-f027e97ec537>
Mon, 25 Aug 2008 11:27:45 +0000 (11:27 +0000)
committerbernie <bernie@38d2e660-2303-0410-9eaa-f027e97ec537>
Mon, 25 Aug 2008 11:27:45 +0000 (11:27 +0000)
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1682 38d2e660-2303-0410-9eaa-f027e97ec537

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)