git: libc/stdlib: Avoid calling destructors in a wrong order.

Rimvydas Jasinskas zrj at crater.dragonflybsd.org
Sun Apr 7 12:07:16 PDT 2019


commit e0bdab235e8bbbb39d51aeb82c1044c68efa3ba7
Author: zrj <rimvydas.jasinskas at gmail.com>
Date:   Mon Apr 1 14:20:40 2019 +0300

    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.

Summary of changes:
 lib/libc/stdlib/atexit.c | 15 ++++++++++-----
 lib/libc/stdlib/atexit.h |  1 -
 2 files changed, 10 insertions(+), 6 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/e0bdab235e8bbbb39d51aeb82c1044c68efa3ba7


-- 
DragonFly BSD source repository



More information about the Commits mailing list