4 ms·
musl's abort() is quite elegant: http://git.etalabs.net/cgi-bin/gitweb.cgi?p=musl;a=blob;f=src/exit/abort.c http://git.etalabs.net/cgi-bin/gitweb.cgi?p=musl;a=b
by lubutu 15y ago
musl's abort() is quite elegant:
http://git.etalabs.net/cgi-bin/gitweb.cgi?p=musl;a=blob;f=src/exit/abort.c http://git.etalabs.net/cgi-bin/gitweb.cgi?p=musl;a=blob;f=sr...
- kelnos 15y agoAnd also not very robust. Sure, it'll halt execution -- of that one thread, anyway -- but if the program has a SIGABRT handler installed that doesn't exit, abort() will fail to do its job. It'd be nice to try just a little harder to kill the program.