(force): Change to create update thread instead of calling

empth_sleep() as the empth_sleep() can not be aborted for an update.
(update_force): New.
This commit is contained in:
Ron Koenderink 2005-08-20 19:16:56 +00:00
parent 22456c4965
commit ef0dbf6790
3 changed files with 17 additions and 9 deletions

View file

@ -97,6 +97,17 @@ update_sched(void *unused)
/*NOTREACHED*/
}
void
update_force(void *seconds)
{
time_t now;
time(&now);
empth_sleep(now + *(int *)seconds);
empth_sem_signal(update_sem);
empth_exit();
}
/*ARGSUSED*/
static void
update_wait(void *unused)