Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
libc: avoid nesting of atexit handler calls
In some situations, atexit handlers perform I/O (e.g., closing a file), which entails the handling of signals. Should SIGTERM be pending, the handling of this signal will in turn trigger the execution of atexit handlers. To break this cycle, this patch removes atexit handlers from the list before executing them. So no atexit handler is entered more than once. Fixes #5444
- Loading branch information