Method atexit()

Method atexit

void atexit(function(:void) callback)


This function puts the callback in a queue of callbacks to call when pike exits. The call order is reversed, i.e. callbacks that have been added earlier are called after callback.


Please note that atexit callbacks are not called if Pike exits abnormally.

See also

exit(), _exit()