Email List: Xaustin-group-lX
[All Lists]

Re: AI 42: atexit() and dlclose()

To: Drazen Kacar <yyyy@xxxxxxxxxxxxx>
Subject: Re: AI 42: atexit() and dlclose()
From: Ulrich Drepper <yyyyyyy@xxxxxxxxxx>
Date: 13 Mar 2001 16:10:31 -0800
Cc: Mark Brown <yyyyy@xxxxxxxxxx>, Austin Group <yyyyyyyyyyyyyy@xxxxxxxxxxxxx>
References: <B6D3DFD4.3655%bmark@us.ibm.com><20010313221943.A23121@washington>
Drazen Kacar <yyyy@xxxxxxxxxxxxx> writes:

> I'd be happier with "Object unloading occurs by a successful invocation
> of dlclose()." If dlclose() can't or won't unload object (for any reason),
> it doesn't make sense to run atexit handlers anyway.

This doesn't work.  The registered functions obviously have to be
called before you try to unload the object.  So, it is the late if the
unloading failed (you cannot simply run the constructors again).

The original wording is what is intended.

-- 
---------------.                          ,-.   1325 Chesapeake Terrace
Ulrich Drepper  \    ,-------------------'   \  Sunnyvale, CA 94089 USA
Red Hat          `--' drepper at redhat.com   `------------------------

<Prev in Thread] Current Thread [Next in Thread>