From 8837bee815c3aa0e4c60b5482a49ef2c3d0ed6ba Mon Sep 17 00:00:00 2001 From: alfred Date: Mon, 10 Nov 2003 20:39:44 +0000 Subject: 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. --- sys/kern/subr_taskqueue.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/kern/subr_taskqueue.c') diff --git a/sys/kern/subr_taskqueue.c b/sys/kern/subr_taskqueue.c index 126f561..f5c74c2 100644 --- a/sys/kern/subr_taskqueue.c +++ b/sys/kern/subr_taskqueue.c @@ -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) -- cgit v1.1