patch-2.1.131 linux/kernel/fork.c
Next file: linux/mm/filemap.c
Previous file: linux/init/main.c
Back to the patch index
Back to the overall index
-  Lines: 9
-  Date:
Fri Nov 27 10:17:08 1998
-  Orig file: 
v2.1.130/linux/kernel/fork.c
-  Orig date: 
Fri Nov 27 13:09:29 1998
diff -u --recursive --new-file v2.1.130/linux/kernel/fork.c linux/kernel/fork.c
@@ -137,7 +137,7 @@
 {
 	struct task_struct **tslot = NULL;
 
-	if (!current->uid || (nr_tasks < NR_TASKS - MIN_TASKS_LEFT_FOR_ROOT))
+	if ((nr_tasks < NR_TASKS - MIN_TASKS_LEFT_FOR_ROOT) || !current->uid)
 		tslot = get_free_taskslot();
 	return tslot;
 }
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov