Send a signal to a process
Integer_Type kill (Integer_Type pid, Integer_Type sig)
This function may be used to send a signal given by the integer sig
to the process specified by pid. The function returns zero upon
success and -1 upon failure setting errno accordingly.
The kill function may be used to determine whether or not
a specific process exists:
define process_exists (pid)
{
if (-1 == kill (pid, 0))
return 0; % Process does not exist
return 1;
}
This function is not supported by all systems.
|