Given the pid of a Linux process, I want to check, from a C program, if the process is still running.
As an addendum to the /proc filesystem method, you can check the /proc//cmdline (assuming it was started from the command line) to see if it is the process you want.