diff options
| author | 2018-08-13 15:26:17 +0000 | |
|---|---|---|
| committer | 2018-08-13 15:26:17 +0000 | |
| commit | 643e3253c9409ce2d1e776b6e6d1781ad6c413b9 (patch) | |
| tree | cfdf4eaf1e2fb2e5731761ba0736cfcffa3b76d9 /sys/kern/kern_exit.c | |
| parent | Add more content. Tweaks from ingo. This man page is not yet hooked up to the (diff) | |
| download | wireguard-openbsd-643e3253c9409ce2d1e776b6e6d1781ad6c413b9.tar.xz wireguard-openbsd-643e3253c9409ce2d1e776b6e6d1781ad6c413b9.zip | |
Simplify the startup of the cleaner, reaper and update threads by
passing the main function directly to kthread_create(9). The start_*
functions are mere stepping stones nowadays and can be pruned.
They used to contain more logic in the pre-kthread era.
While here, set `cleanerproc' and `syncerproc' during the thread
creation rather than expect the threads to set the proc pointer.
Also, rename `sched_sync' to `syncer_thread' to reduce confusion
with the scheduler-related functions.
OK kettenis@, deraadt@, mpi@
Diffstat (limited to 'sys/kern/kern_exit.c')
| -rw-r--r-- | sys/kern/kern_exit.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/kern_exit.c b/sys/kern/kern_exit.c index 6bbf5fb2258..4e1f1dee000 100644 --- a/sys/kern/kern_exit.c +++ b/sys/kern/kern_exit.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kern_exit.c,v 1.165 2018/07/13 09:25:23 beck Exp $ */ +/* $OpenBSD: kern_exit.c,v 1.166 2018/08/13 15:26:17 visa Exp $ */ /* $NetBSD: kern_exit.c,v 1.39 1996/04/22 01:38:25 christos Exp $ */ /* @@ -376,7 +376,7 @@ proc_free(struct proc *p) * a zombie, and the parent is allowed to read the undead's status. */ void -reaper(void) +reaper(void *arg) { struct proc *p; |
