Reputation: 23571
What's the right way to kill a process in Linux Kernel, should I locate sys_kill
and call it? (It looks rude)
P.S I have the task_struct
and the pid of the target process
Upvotes: 0
Views: 2199
Reputation: 1146
You can send the SIGKILL to the target process. thats a way to do it. But if there exists any userland solutions, i would never kill a process from kernel
Upvotes: 3