Since using a destructor doesn't seem to work all that well, try using atexit instead.
authorDaniel Hokka Zakrisson <daniel@hozac.com>
Thu, 21 Aug 2008 17:57:06 +0000 (17:57 +0000)
committerDaniel Hokka Zakrisson <daniel@hozac.com>
Thu, 21 Aug 2008 17:57:06 +0000 (17:57 +0000)
git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2756 94cd875c-1c1d-0410-91d2-eb244daf1a30

src/rpm-fake.c

index 0e3a936..26bb73c 100644 (file)
@@ -511,6 +511,8 @@ initRPMFake()
   initEnvironment();
   initPwSocket();
 
+  atexit(exitRPMFake);
+
 #if 0
   if (isDbgLevel(DBG_VARIABLES|DBG_VERBOSE2)) {