Atom

os.exit()

Exits the current host process.

Signature

os.exit([code])

Parameters

Optional signed code from 0 through 255, default 0.

Returns

The call does not return.

Behavior

Exits directly from the host. Release resources before calling it.

Errors

Out-of-range code or denied process control.

Example

Atom
use os
os.exit(0)