From owner-freebsd-hackers Thu Nov 23 5:40:53 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from alpha.dante.org.uk (alpha.dante.org.uk [193.63.211.19]) by hub.freebsd.org (Postfix) with ESMTP id 9417937B479 for ; Thu, 23 Nov 2000 05:40:50 -0800 (PST) Received: from theta.dante.org.uk ([193.63.211.7]) by alpha.dante.org.uk with esmtp (Exim 3.12 #4) id 13ywcC-0004iZ-00; Thu, 23 Nov 2000 13:40:40 +0000 Received: from localhost ([127.0.0.1] helo=dante.org.uk) by theta.dante.org.uk with esmtp (Exim 3.12 #4) id 13ywc6-0004H8-00; Thu, 23 Nov 2000 13:40:35 +0000 Message-ID: <3A1D1E52.95A9E626@dante.org.uk> Date: Thu, 23 Nov 2000 13:40:34 +0000 From: Konstantin Chuguev Organization: Delivery of Advanced Networking Technology to Europe Ltd. X-Mailer: Mozilla 4.75 [en] (X11; U; SunOS 5.6 sun4u) X-Accept-Language: en, ru MIME-Version: 1.0 To: Dmitry Sychov Cc: hackers@FreeBSD.ORG Subject: Re: dlopen() References: <001001c05552$45913f80$0e61bec3@dima> Content-Type: text/plain; charset=koi8-r Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Dmitry Sychov wrote: > Greetings. > > Is it safe to remove the *.so file after it is loaded > into the process space and addresses to its > functions are gotten? It's safe to remove it as soon as it's been opened. The file will still exist in the filesystem, only there won't be any references to it from any directories, so you won't be able to open it by its name. The file will be really removed from the file system when you close your file descriptor. > > I've tested this and have no problems so far. > > I need this to implement the "hot swap" of the > dynamic loading libraries. > > Thanks, > Dmitry > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-hackers" in the body of the message -- * * Konstantin Chuguev - Application Engineer * * Francis House, 112 Hills Road * Cambridge CB2 1PQ, United Kingdom D A N T E WWW: http://www.dante.net To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message