Exit v0.1.0
Terminates the process immediately.
Package: Bsd
Signature
func Exit(code: int32);
Parameters
| Name | Type | Description |
|---|---|---|
code | int32 | Status reported to the process's parent. |
Description
Exit invokes the low-level target BSD exit operation. It does not return,
unwind the stack, flush user-space buffers, or run cleanup code. A waiting
parent normally observes only the low 8 bits of the status.
Prefer returning from
Main for normal termination. Use Exit only when the
process must stop immediately.See also
Bsd— the package overview