GNOME Bugzilla – Bug 62806
atexit limit on solaris2.6
Last modified: 2004-12-22 21:47:04 UTC
Under Solaris 2.6, only a finite number (32) of functions can be specified to be executed at exit (atexit()). Now, I have never run into trouble before with this limitation, but running nautilus (1.0.5) seems to be an efficient operation to get to this limit. If there is a patch for glib to circumvent the limit (ATEXIT_MAX), I would be very interested. Thnx, Frnk
I'm defining this as "Not our problem"; yes g_atexit() could multiplex atexit, but: a) That might require painful configure checks b) You wouldn't get proper ordering when mixing atexit and g_atexit. c) I'd consider g_atexit() not something you should use in new programs; it was a wrapper to handle old systems (SunOS 4, NeXTstep era.) We really require a C89 compliant C library these days. If I was using atexit (see d) I'd use it directly. d) atexit() is evil anyways. (It's not a ridiculous idea, but...)