summaryrefslogtreecommitdiff
path: root/src/dynamic.cpp
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-01-17 21:49:21 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-01-17 21:49:21 +0000
commit93824184400d603aaeda09f9b4cd59c4f85ce3a9 (patch)
treeaa91b41346725c4c9aeefd6da44dfd002c0a0968 /src/dynamic.cpp
parent7e6dfdf2118d4db84b85d19278a83186046ea2bb (diff)
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
Diffstat (limited to 'src/dynamic.cpp')
-rw-r--r--src/dynamic.cpp2
1 files changed, 2 insertions, 0 deletions
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
}