(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:
parent
22456c4965
commit
ef0dbf6790
3 changed files with 17 additions and 9 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue