  ,     -
   .

  

    do_exit ()    
   ,      TASK_ZOMBIE   -
 .    ,    
      . , -
          .
         -
 ,  task_struct   .

  wait ()    ( 
)   wait 4 ().     -
      ,     -
   .     PID -
  .    ,    
   ,       
    .

      , -
  release_task (),     .

   free_uid ()      -
   .   Linux    -
   ,      
  .      , 
        , 
  .

   unhash_process ()     --
   pidhash      .

       (ptrace),    
       
  ,      ( ptrace) 
.

      put_task_struct ()  
 ,       thread_info, a
   ,   task_struct.

    ,    ,  -
   , .

 "" 

     ,     -
,    -    
  ,  ,    , 
   ,      . 
    :     

  61