next up previous contents index
Next: LStat Up: Functions and procedures Previous: S_ISSOCK

Kill

   

Declaration:

Function Kill Pid : Longint; Sig : Integer) : Integer;

Description:

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.

Errors:

LinuxError is used to report errors:

sys_einval
An invalid signal is sent.
sys_esrch
The Pid or process group don't exist.
sys_eperm
The effective userid of the current process doesn't math the one of process Pid.

See also:

SigAction, Signal, Kill (2)



Michael Van Canneyt
Thu Sep 10 13:59:33 CEST 1998