summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--cpukit/posix/src/alarm.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/cpukit/posix/src/alarm.c b/cpukit/posix/src/alarm.c
index c671b9e161..be3a334f37 100644
--- a/cpukit/posix/src/alarm.c
+++ b/cpukit/posix/src/alarm.c
@@ -57,6 +57,8 @@ unsigned int alarm(
the_timer = &_POSIX_signals_Alarm_timer;
+ _Thread_Disable_dispatch();
+
state = _Watchdog_Remove( the_timer );
if ( (state == WATCHDOG_ACTIVE) || (state == WATCHDOG_REMOVE_IT) ) {
/*
@@ -72,5 +74,7 @@ unsigned int alarm(
if ( seconds )
_Watchdog_Insert_seconds( the_timer, seconds );
+ _Thread_Enable_dispatch();
+
return remaining;
}