From a25f7626b143d85d6a146b95ae61baee1ed4d84b Mon Sep 17 00:00:00 2001 From: bernie Date: Mon, 25 Aug 2008 11:27:45 +0000 Subject: [PATCH] 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 --- bertos/emul/timer_posix.c | 1 + 1 file changed, 1 insertion(+) 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) -- 2.25.1