exit(status)
0
; on failure, it returns -1
. The cleanup function
registered last is called first. Each cleanup function will be called
at most once. Since Python's internal finallization will have
completed before the cleanup function, no Python APIs should be called
by func.
See About this document... for information on suggesting changes.