Function Kill Pid : Longint; Sig : Integer) : Integer;
Send a signal Sig to a process or process group. If Pid>0 then the signal is sent to Pid, if it equals -1, then the signal is sent to all processes except process 1. If Pid<-1 then the signal is sent to process group -Pid.
The return value is zero, except in case three, where the return value is the number of processes to which the signal was sent.
LinuxError is used to report errors: