Oleg Nesterov 46f382d2b6 uglify while_each_pid_task() to make sure we don't count the execing pricess twice
There is a window when de_thread() switches the leader and drops
tasklist_lock.  In that window do_each_pid_task(PIDTYPE_PID) finds both new
and old leaders.

The problem is pretty much theoretical and probably can be ignored.  Currently
the only users of do_each_pid_task(PIDTYPE_PID) are send_sigio/send_sigurg, so
they can send the signal to the same process twice.

Signed-off-by: Oleg Nesterov <oleg@tv-sign.ru>
Cc: "Eric W. Biederman" <ebiederm@xmission.com>
Cc: Davide Libenzi <davidel@xmailserver.org>
Cc: Pavel Emelyanov <xemul@openvz.org>
Cc: Roland McGrath <roland@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2008-02-08 09:22:28 -08:00
..
2008-02-07 08:42:31 -08:00
2008-02-07 08:42:31 -08:00
2008-02-07 08:42:32 -08:00
2008-02-07 08:42:32 -08:00
2008-02-07 08:42:32 -08:00
2008-02-07 08:42:32 -08:00
2008-02-08 09:22:24 -08:00
2008-02-05 09:44:31 -08:00
2008-02-07 08:42:33 -08:00
2008-02-07 08:42:33 -08:00
2008-02-03 17:19:47 +02:00
2008-02-06 19:25:06 -06:00
2008-01-31 17:40:18 +01:00
2008-02-06 10:41:16 -08:00