kill

kill — sends a signal to a process.

Syntax

kill (pid, signo)

		

Arguments

pid

The process id number.

signo

The signal number, normally one of the built-in signal values.

Returns

t

Description

This process functions similarly to the kill shell command. Signals and their descriptions can be found in signal.

Example

Process 1:

Gamma> getpid();
8299
Gamma> 
		

Process 2:

Gamma> kill(8299,9);
t
Gamma> 
		

Process 1:

Gamma> Killed
		

Process 3:

Gamma> getpid();
9041
Gamma> kill (9041,14);
Alarm clock

See Also

signal