problem with forget_original_parent in exit.c

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




Hi ,
    I have the following questions regarding reparenting in exit.c
Reparenting is done in forget_original_parent.

1.     One question that I have is why don't we reparent the children to the 
parent of the dying process rather than reparent it to some other process in 
the process group.

2.    Is there a potential bug in the function. While we are trying to 
reaparent the children of the dying process that process also dies. Should 
the function reparent all childrens of a dying process to the init instead, 
to avoid this race condition.


thanks
gaurav


_________________________________________________________________
Join the world’s largest e-mail service with MSN Hotmail. 
http://www.hotmail.com

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux