At Sun, 21 Dec 2025 13:33:40 +0000, Sad Clouds <[email protected]> 
wrote:
Subject: Re: 11.0_BETA: glxinfo crashes with Segmentation fault
>
> I think the standard is very clear:
>
> "... to be called without arguments from exit(), or after return from
> the initial call to main(), or on the last thread termination."
>
> The fact that the standard does not cover all the other use cases that
> some people may wish to implement is beside the point. The common
> wisdom is that atexit() was never designed for cleanup handlers that
> may later point to dlclose()ed shared libraries.

Hear hear!  I concur completely.

> There is no RAII is C and atexit() is not meant to
> be used as such.

indeed.

--
                                        Greg A. Woods <[email protected]>

Kelowna, BC     +1 250 762-7675           RoboHack <[email protected]>
Planix, Inc. <[email protected]>     Avoncote Farms <[email protected]>

Attachment: pgpiXsQZdGTo1.pgp
Description: OpenPGP Digital Signature

Reply via email to