westonpace commented on issue #15054:
URL: https://github.com/apache/arrow/issues/15054#issuecomment-1397422501

   I agree that this isn't a good fix for users.  I'm not sure an `atexit` hook 
would work though because it [won't be called before the static state is 
destroyed](https://en.cppreference.com/w/cpp/utility/program/atexit):
   
   > The functions may be called concurrently with the destruction of the 
objects with static storage duration and with each other, maintaining the 
guarantee that if registration of A was sequenced-before the registration of B, 
then the call to B is sequenced-before the call to A, same applies to the 
sequencing between static object constructors and calls to atexit: see 
[std::exit](https://en.cppreference.com/w/cpp/utility/program/exit)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to