After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 62806 - atexit limit on solaris2.6
atexit limit on solaris2.6
Status: RESOLVED WONTFIX
Product: glib
Classification: Platform
Component: general
1.2.x
Other opensolaris
: Normal blocker
: ---
Assigned To: gtkdev
gtkdev
Depends on:
Blocks:
 
 
Reported: 2001-10-22 15:41 UTC by frnk
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description frnk 2001-10-22 15:41:11 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
Comment 1 Owen Taylor 2001-10-22 18:27:44 UTC
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...)