From e2e6adf5a135aeddf389174473984b7b61582c68 Mon Sep 17 00:00:00 2001 From: Ingo Molnar Date: Sun, 9 Feb 2003 00:59:53 -0800 Subject: [PATCH] Lock session and group ID setting - session-IDs and group-IDs are set outside the tasklist lock. This causes breakage in the USB code. The correct fix is to do this: I introduced the bug with the new pidhash. --- include/linux/sched.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include/linux') diff --git a/include/linux/sched.h b/include/linux/sched.h index 975dd5dca713..c5ff8e452d49 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h @@ -503,6 +503,8 @@ extern struct task_struct init_task; extern struct mm_struct init_mm; extern struct task_struct *find_task_by_pid(int pid); +extern void set_special_pids(pid_t session, pid_t pgrp); +extern void __set_special_pids(pid_t session, pid_t pgrp); /* per-UID process charging. */ extern struct user_struct * alloc_uid(uid_t); -- cgit v1.2.3