Check if PID exists on Linux

A simple function that will scan /proc file system and check if PID exists. If name is provided, it will also check the command name. Function returns TRUE if process was found (and name matched if specified) or FALSE if no such process ID exists.

| Read more …