Changes

Jump to navigation Jump to search
No change in size ,  06:25, 5 August 2015
Line 14: Line 14:     
=== Collect process tree and freeze it ===
 
=== Collect process tree and freeze it ===
The '''$pid''' of a process group leader is obtained from the command line (<code>--tree</code> option). By using this '''$pid''' the dumper walks though '''/proc/$pid/task/''' directory collecting threads and through the '''/proc/$pid/task/$tid/children''' to gathers children recursively. While walking tasks are stopped using the <code>ptrace</code>'s <code>PTRACE_SEISE</code> command.
+
The '''$pid''' of a process group leader is obtained from the command line (<code>--tree</code> option). By using this '''$pid''' the dumper walks though '''/proc/$pid/task/''' directory collecting threads and through the '''/proc/$pid/task/$tid/children''' to gathers children recursively. While walking tasks are stopped using the <code>ptrace</code>'s <code>PTRACE_SEIZE</code> command.
    
=== Collect tasks' resources and dump them ===
 
=== Collect tasks' resources and dump them ===
5

edits

Navigation menu