exit ( n -- * )
Factor handbook » The implementation » System interface

Prev:nano-count ( -- ns )
Next:quit ( -- * )


Vocabulary
system

Inputs
nan integer exit code


Outputs
None

Word description
Flushes the current and global output and error streams, runs all shutdown-hooks, flushes the streams again, and then exits the Factor process. Flush errors are ignored so an unavailable stream does not prevent shutdown or flushing the other streams. If an error occurs when the shutdown hooks run, or when the process is about to terminate, the error is ignored and the process exits with status 255.

Definition