Fixed small bug in alarm code.

Kernel timer count was not reset after expiry.
This commit is contained in:
Jorrit Herder
2005-08-05 16:46:27 +00:00
parent 7de7ca978d
commit e396496d8c
4 changed files with 6 additions and 16 deletions

View File

@@ -71,7 +71,9 @@ timer_t *tp;
* alarm. The process number is stored in timer argument 'ta_int'. Notify that
* process with a notification message from CLOCK.
*/
lock_notify(CLOCK, tmr_arg(tp)->ta_int);
int proc_nr = tmr_arg(tp)->ta_int; /* get process number */
tmr_inittimer(tp); /* reset alarm timer */
lock_notify(CLOCK, proc_nr); /* notify process */
}
#endif /* USE_SETALARM */