child and do_exit()

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

 



Hello,

 I want ro remove a process from a list when it terminates. So, I added a call
to my new kernel function (that manipulates the list) in the do_exit() function.
When I do some test, like creating a child and see if my function is called, I
see nothing. I mean, the parent called my new function (so it's ok) but it seems
that child don't pass through the do_exit().

 So, where can I add the call to my new kernel function in order to clean some
kernel structures when a process terminates? I thought about release_task() in
kernel/exit.c

Thanks for your help
Guillaume

--
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