kill(3f)

Name
kill - sends a signal to a process

Syntax
integer kill, err, pid, signum
external kill
err = kill ( pid, signum )

Description
The kill function sends the signal signum to a process specified by the process number pid.

The pid argument must be the process ID of one of the user's processes. The signum must must be a valid signal number.

Note that this function just sends a message; it does not necessarily kill the process. Some users have been known to consider this a UNIX misnomer, but what do they know? If you really do mean to kill a process, you do:

err = kill ( pid, SIGKILL ) and of course everyone knows SIGKILL = 9.

Return Values
The function returns zero if it is successful; otherwise, it returns an error code.

Files
libU77.a

See Also
kill(2), sigvec(2), fork(3f), signal(3f)