ref: ae61eb9381f6b0c70e1c52bf2c2b7f4cd0b5bb6f dir: /sys/src/libc/port/exits.c/
#include <u.h> #include <libc.h> void (*_onexit)(void); #pragma profile off void exits(char *s) { if(_onexit != nil) (*_onexit)(); _exits(s); }