Causes the specified signal to be send to a process.
#include <signal.h> int kill ( pid_t pid, int sig );
(IN) Specifies the process. The value must be greater than 0 and specify an actual process.
(IN) Specifies to the signal to send. For a list of supported signals, see Section 5.1, Standard Signals. If sig is null, error checking is performed, but no signal is sent. This can be used to check the validity of the pid parameter.
If successful, returns 0. Otherwise, returns -1 and sets errno to indicate the error: