is for_each_task broken on SMP?

From: Chris Sears (
Date: Fri Jan 21 2000 - 23:31:21 EST

for_each_task skips the first task in the task list, init.

But with SMP, init and only init can be cloned.
In the SMP case, shouldn't it skip pid==1?

kernel/capability.c cap_set_all() gets this right
but every other use of for_each_task
that I checked didn't.

Chris Sears

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
Please read the FAQ at

This archive was generated by hypermail 2b29 : Sun Jan 23 2000 - 21:00:27 EST