Fix for the one-time (dumpfile), or as-required (live system),

gathering of tasks from the kernel pid_hash[] in 2.6.24 and later
kernels.  Without the patch, if an entry in a pid_hash[] chain is
not related to the "init_pid_ns" pid_namespace structure, any
remaining entries in the hlist chain are skipped.
(vvs@parallels.com)
This commit is contained in:
Dave Anderson 2014-09-19 14:20:57 -04:00
parent 4010619625
commit 62b294b27c

2
task.c
View File

@ -2033,7 +2033,7 @@ do_chained:
* Use init_pid_ns level 0 (PIDTYPE_PID).
*/
if (upid_ns != tt->init_pid_ns)
continue;
goto chain_next;
pid = upid - OFFSET(pid_numbers);