简体   繁体   中英

Handling killed process in Android/Linux kernel.

I have an android kernel specific question. Can someone explain what exactly happens when a process is killed in the kernel. I want to handle all such processes within my modified kernel. I have a hunch this should be handled somewhere in /kernel/exit.c .

Does anyone have a clearer idea as to what exactly happens in such an incident and where to handle this ?

Basically a SIGKILL is delivered to the process the same way as other signals but when the task handles the signal (in kernel mode before resuming userspace execution), it would check the signal number and terminate the thread group if it's SIGKILL. For linux kernel(I'm not familiar with Android) you may want to check out "kernel/signal.c"

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM