From owner-freebsd-hackers Sun Feb 4 8:55: 2 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from spoon.beta.com (064-184-210-067.inaddr.vitts.com [64.184.210.67]) by hub.freebsd.org (Postfix) with ESMTP id 8C6D537B401 for ; Sun, 4 Feb 2001 08:54:45 -0800 (PST) Received: from spoon.beta.com (localhost [127.0.0.1]) by spoon.beta.com (8.11.0/8.11.0) with ESMTP id f14Gsh808001 for ; Sun, 4 Feb 2001 11:54:44 -0500 (EST) (envelope-from mcgovern@spoon.beta.com) Message-Id: <200102041654.f14Gsh808001@spoon.beta.com> To: hackers@freebsd.org Subject: exit() does not do dlclose()? Date: Sun, 04 Feb 2001 11:54:43 -0500 From: Brian McGovern Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I'm playing with an application that uses dlopen() to load some libraries. I use the _init function to set the libraries up. I've also set up the _fini functions to shut things down. I see, in the man page, that dlclose() will unload the libraries and call _fini. My question is whether or not exit() does the same thing? It currently does not appear to, although that would seem rather odd to me, given the other types of cleanup it does. Is this due to the fact that dlopen() bypasses the 'normal' loader, and therefore the cleanup routines can not understand how to get rid of them correctly? -Brian To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message