libexplain  1.4.D001
Functions
libexplain/process_exists.c File Reference
#include <libexplain/ac/errno.h>
#include <libexplain/ac/signal.h>
#include <libexplain/process_exists.h>

Go to the source code of this file.

Functions

int explain_process_exists (pid_t pid)

Function Documentation

int explain_process_exists ( pid_t  pid)

The explain_process_exists function may be used to determine whether or not the given process actually exists.

Parameters:
pidThe process ID to search for.
Returns:
boolean; true (non zero) if the process exists, false 9zero) if the process does not exists.
Note:
This has inevitable race conditions, because we aren't in the kernel, and can't take the appropriate lock.

Definition at line 27 of file process_exists.c.