Skip to content
Snippets Groups Projects

Call DSO destructors during exit()

Merged 8tab requested to merge 8tab/relibc:destructor into master
5 files
+ 19
8
Compare changes
  • Side-by-side
  • Inline
Files
5
+ 3
0
@@ -21,6 +21,7 @@ use crate::{
unistd::{self, sysconf, _SC_PAGESIZE},
wchar::*,
},
ld_so,
platform::{self, types::*, Pal, Sys},
};
@@ -292,6 +293,8 @@ pub unsafe extern "C" fn exit(status: c_int) {
_fini();
ld_so::fini();
pthread_terminate();
Sys::exit(status);
Loading