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