libc/stdlib: Avoid calling destructors in a wrong order.
authorzrj <rimvydas.jasinskas@gmail.com>
Mon, 1 Apr 2019 11:20:40 +0000 (14:20 +0300)
committerzrj <zrj@dragonflybsd.org>
Sun, 7 Apr 2019 19:15:01 +0000 (22:15 +0300)
commite0bdab235e8bbbb39d51aeb82c1044c68efa3ba7
tree93e22f697af3e95d579bbe83dc0d08e92313c3e8
parent5dcdf7782ae85aaffb8ec8b15dfa4516b05cad6b
libc/stdlib: Avoid calling destructors in a wrong order.

There is a possibility that dso handle in __cxa_finalize() might be owned
by another dso. On exit(3) calling these destructors is pointless.
lib/libc/stdlib/atexit.c
lib/libc/stdlib/atexit.h