Messages in this thread Patch in this message | | | Date | Mon, 26 Nov 2007 17:25:56 +0300 | From | Oleg Nesterov <> | Subject | [PATCH? 3/3] move daemonized kernel threads into the swapper's session |
| |
Any reason why daemonized kthread still uses 1,1 special pids? This patch sets 0,0 pids, this matches kthread_create'ed threads.
Signed-off-by: Oleg Nesterov <oleg@tv-sign.ru>
--- PT/kernel/exit.c~3_daemonize_swapper 2007-11-26 16:47:35.000000000 +0300 +++ PT/kernel/exit.c 2007-11-26 17:10:41.000000000 +0300 @@ -390,7 +390,7 @@ void daemonize(const char *name, ...) get_nsproxy(&init_nsproxy); switch_task_namespaces(current, &init_nsproxy); } - set_special_pids(find_pid(1)); + set_special_pids(&init_struct_pid); proc_clear_tty(current); /* Block and flush all signals */ - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |