Fix a bug where the taskqueue kproc was being parented by init
because RFNOWAIT was being passed to kproc_create. The result was that shutdown took quite a bit longer because this errant "child" would not respond to termination signals from init at system shutdown. RFNOWAIT dissassociates itself from the caller by attaching to init as a parent proc. We could have had the taskqueue proc listen for SIGKILL, but being able to SIGKILL a potentially critical system process doesn't seem like a good idea.
This commit is contained in:
parent
5dec156e2b
commit
cd3c61b93d
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=122436
@ -271,7 +271,7 @@ TASKQUEUE_DEFINE(swi_giant, taskqueue_swi_giant_enqueue, 0,
|
||||
|
||||
TASKQUEUE_DEFINE(thread, taskqueue_thread_enqueue, 0,
|
||||
kthread_create(taskqueue_kthread, NULL,
|
||||
&taskqueue_thread_proc, RFNOWAIT, 0, "taskqueue"));
|
||||
&taskqueue_thread_proc, 0, 0, "taskqueue"));
|
||||
|
||||
int
|
||||
taskqueue_enqueue_fast(struct taskqueue *queue, struct task *task)
|
||||
|
Loading…
Reference in New Issue
Block a user