NAME
pidalive − report liveliness of a process
SYNOPSIS
#include <codelibs/boolean.h>
#include <codelibs/pidalive.h>
boolean pidalive(int pid);
CC ... -lcodelibs
DESCRIPTION
Pidalive returns TRUE if the process denoted by pid exists - otherwise FALSE is returned. Pidalive uses kill(2) to see if the process is still alive. No permission for using kill(2) on the process is needed so this function works equally well for superusers and normal users.
Process numbers less than or equal to zero (0) always cause pidalive to return FALSE.
SEE ALSO
—