From Pid to Path
With inspiration from ps.c: given a pid, here's C that walks the kernel process arguments via sysctl to determine the full path to the corresponding executable.
This post is for members only
Already have an account? Sign in.