From 93824184400d603aaeda09f9b4cd59c4f85ce3a9 Mon Sep 17 00:00:00 2001 From: brain Date: Tue, 17 Jan 2006 21:49:21 +0000 Subject: Added unlink() to tidy up /tmp after each dlopen() git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2816 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/dynamic.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') diff --git a/src/dynamic.cpp b/src/dynamic.cpp index a4542760b..e96c9d905 100644 --- a/src/dynamic.cpp +++ b/src/dynamic.cpp @@ -71,6 +71,8 @@ DLLManager::DLLManager(char *fname) h = dlopen(tmpfile_template, RTLD_NOW ); err = (char*)dlerror(); close(fd); + // We can delete the tempfile once it's loaded, leaving just the inode. + unlink(tmpfile_template); #endif } -- cgit v1.2.3