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.

Subscribe to A garage sale for your mind

Don’t miss out on the latest posts. Sign up now to get access to the library of members-only posts.
[email protected]
Subscribe