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