Discussion:
[1003.1(2013)/Issue7+TC1 0000851]: pthread_atfork orphans handlers in unloaded shared libraries
Austin Group Bug Tracker
2014-07-10 16:07:28 UTC
Permalink
A NOTE has been added to this issue.
======================================================================
http://austingroupbugs.net/view.php?id=851
======================================================================
Reported By: dancol
Assigned To:
======================================================================
Project: 1003.1(2013)/Issue7+TC1
Issue ID: 851
Category: System Interfaces
Type: Omission
Severity: Comment
Priority: normal
Status: New
Name: Daniel Colascione
Organization:
User Reference:
Section: (section number or name, can be interface name)
Page Number: (page or range of pages)
Line Number: (Line or range of lines)
Interp Status: ---
Final Accepted Text:
======================================================================
Date Submitted: 2014-06-26 23:34 UTC
Last Modified: 2014-07-10 16:07 UTC
======================================================================
Summary: pthread_atfork orphans handlers in unloaded shared
libraries
======================================================================

----------------------------------------------------------------------
(0002307) eblake (manager) - 2014-07-10 16:07
http://austingroupbugs.net/view.php?id=851#c2307
----------------------------------------------------------------------
Is there existing practice for unregistering pthread_atfork() callbacks?
Also, should we add the ability to unregister an atexit() callback?

Issue History
Date Modified Username Field Change
======================================================================
2014-06-26 23:34 dancol New Issue
2014-06-26 23:34 dancol Name => Daniel Colascione
2014-06-26 23:34 dancol Section => (section number or
name, can be interface name)
2014-06-26 23:34 dancol Page Number => (page or range of
pages)
2014-06-26 23:34 dancol Line Number => (Line or range of
lines)
2014-06-27 01:09 eblake Note Added: 0002286
2014-06-27 09:32 geoffclare Note Added: 0002287
2014-06-27 14:43 dalias Note Added: 0002291
2014-07-10 16:07 eblake Note Added: 0002307
======================================================================
Steffen Nurpmeso
2014-07-10 19:42:45 UTC
Permalink
|======================================================================
|http://austingroupbugs.net/view.php?id=851
|======================================================================
|Summary: pthread_atfork orphans handlers \
|in unloaded shared
|libraries
|----------------------------------------------------------------------
| (0002307) eblake (manager) - 2014-07-10 16:07
| http://austingroupbugs.net/view.php?id=851#c2307
|----------------------------------------------------------------------
|Is there existing practice for unregistering pthread_atfork() callbacks?
|Also, should we add the ability to unregister an atexit() callback?

In my opinion adding the latter would be a real enhancement.
POSIX has dlopen(3) *and* dlclose(3), but no standardized way to
give such dynamic code the possibility to perform proper
finalization. And of course there can also be code that is active
only for a short time and maybe never thereafter. Could be an
object, however.

--steffen

Loading...