Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在Linux内核中杀死进程的正确方法是什么,我应该找到sys_kill并调用它吗?(看起来很粗鲁)
sys_kill
PS我有task_struct目标进程的pid
task_struct
您可以将 SIGKILL 发送到目标进程。这是一种方法。但是如果存在任何用户态解决方案,我永远不会从内核中杀死一个进程