[Opensrf-commits] r1361 - trunk/src/libopensrf
svn at svn.open-ils.org
svn at svn.open-ils.org
Tue Jul 8 18:16:06 EDT 2008
Author: erickson
Date: 2008-07-08 18:16:02 -0400 (Tue, 08 Jul 2008)
New Revision: 1361
Modified:
trunk/src/libopensrf/osrf_system.c
Log:
don't run the cleanup/shutdown code more than once per process
Modified: trunk/src/libopensrf/osrf_system.c
===================================================================
--- trunk/src/libopensrf/osrf_system.c 2008-07-08 16:16:20 UTC (rev 1360)
+++ trunk/src/libopensrf/osrf_system.c 2008-07-08 22:16:02 UTC (rev 1361)
@@ -456,13 +456,16 @@
return 0;
}
+static int shutdownComplete = 0;
int osrf_system_shutdown( void ) {
+ if(shutdownComplete) return;
osrfConfigCleanup();
osrfCacheCleanup();
osrf_system_disconnect_client();
osrf_settings_free_host_config(NULL);
osrfAppSessionCleanup();
osrfLogCleanup();
+ shutdownComplete = 1;
return 1;
}
More information about the opensrf-commits
mailing list