Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ kill(2) — Ultrix-11 2.0

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

signal(2)

kill(1)

KILL(2)

NAME

kill  −  send signal to a process

SYNOPSIS

kill(pid, sig);

DESCRIPTION

Kill sends the signal sig to the process specified by the process number in r0.  See signal(2) for a list of signals.

The sending and receiving processes must have the same effective user ID, otherwise this call is restricted to the superuser. 

If the process number is 0, the signal is sent to all other processes in the sender’s process group; see tty(4).

If the process number is −1, and the user is the superuser, the signal is broadcast universally except to processes 0 and 1, the scheduler and initialization processes, see init(8).

Processes may send signals to themselves. 

RETURN VALUE

Zero is returned if the process is killed; −1 is returned otherwise, with errno containing the error code. 

DIAGNOSTICS

Kill will fail and no signal will be sent if any of the following occur:

[EINVAL] Sig is not a valid signal number. 

[EINVAL] Attempt was made to send to an unassigned process group. 

[ESRCH] No process can be found corresponding to that specified by pid.

[ESRCH] No processes killed. 

SEE ALSO

signal(2), kill(1)

ASSEMBLER

(kill = 37.) 
(process number in r0)
sys kill; sig

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026