This is an archive of the discontinued LLVM Phabricator instance.

[libc] Fix exit not calling new handlers registered from a call to atexit in atexit handler
ClosedPublic

Authored by abrachet on Mar 14 2022, 6:53 PM.

Diff Detail

Event Timeline

abrachet created this revision.Mar 14 2022, 6:53 PM
Herald added a project: Restricted Project. · View Herald TranscriptMar 14 2022, 6:53 PM
sivachandra accepted this revision.Mar 14 2022, 9:07 PM

So, you do want to match the glibc behavior then? I do not know what the ideal approach though. Matching glibc behavior isn't a bad target.

This revision is now accepted and ready to land.Mar 14 2022, 9:07 PM

So, you do want to match the glibc behavior then? I do not know what the ideal approach though. Matching glibc behavior isn't a bad target.

It was pointed out to me by @mcgrathr that not calling the newly registered functions is incorrect. glibc as you point out does this, musl and by extension Fuchsia's current libc do not.