From: bernie Date: Mon, 25 Aug 2008 11:27:45 +0000 (+0000) Subject: timer Prevent further SIGALRM signals when timer is stopped X-Git-Tag: 2.0.0~252 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=a25f7626b143d85d6a146b95ae61baee1ed4d84b;p=bertos.git timer Prevent further SIGALRM signals when timer is stopped git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1682 38d2e660-2303-0410-9eaa-f027e97ec537 --- diff --git a/bertos/emul/timer_posix.c b/bertos/emul/timer_posix.c index d54c6120..70990a21 100644 --- a/bertos/emul/timer_posix.c +++ b/bertos/emul/timer_posix.c @@ -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)