New /proc/pid/kill Interface Proposed For Killing Linux Processes
Written by Michael Larabel in Linux Kernel on 29 October 2018 at 08:24 PM EDT. 30 Comments
LINUX KERNEL --
A Google developer has proposed /proc/pid/kill as a new procfs-based kill interface for killing a process on Linux.

With each process running on the system having their own /proc/PID directory, the patch proposal allows writing to /proc/PID/kill with a signal number to kill that process.

The functionality is similar to the kill command except for the process ID originating from the proc file-system rather than an explicit system call parameter, in order to avoid potential race conditions. Ultimately this new /proc/pid/kill interface could be used to write "a race-free and safe pkill."

More details via this patch currently flying on the kernel mailing list under a "request for comments" flag by Google's Daniel Colascione.
Related News
About The Author
Author picture

Michael Larabel is the principal author of Phoronix.com and founded the site in 2004 with a focus on enriching the Linux hardware experience. Michael has written more than 20,000 articles covering the state of Linux hardware support, Linux performance, graphics drivers, and other topics. Michael is also the lead developer of the Phoronix Test Suite, Phoromatic, and OpenBenchmarking.org automated benchmarking software. He can be followed via Twitter or contacted via MichaelLarabel.com.

Popular News This Week