pquit

Number0x00
Signature(status) -> never returns
Grouptask
Since1.0

Terminate the calling process. The status is delivered verbatim to the parent through wait, with no kill tag: this is how a voluntary exit is distinguished from a pkill or a fault death, which carry KILLED_TAG.

Pitfalls

Do not use pquit to exit a thread unless you want the thread to terminate the entire process. Use tquit for a single thread.

Arguments

RegisterNameDescription
r0statusExit status stored in the PCB, retrievable by the parent via wait

Returns

Does not return.

See also