[Opensrf-commits] r1282 - trunk/src/router

svn at svn.open-ils.org svn at svn.open-ils.org
Tue Mar 11 18:36:43 EDT 2008


Author: erickson
Date: 2008-03-11 18:03:28 -0400 (Tue, 11 Mar 2008)
New Revision: 1282

Modified:
   trunk/src/router/osrf_router_main.c
Log:
forcing router exit without friendly cleanup for now until a socket bug is squashed

Modified: trunk/src/router/osrf_router_main.c
===================================================================
--- trunk/src/router/osrf_router_main.c	2008-03-11 16:49:41 UTC (rev 1281)
+++ trunk/src/router/osrf_router_main.c	2008-03-11 22:03:28 UTC (rev 1282)
@@ -9,6 +9,14 @@
 
 void routerSignalHandler( int signo ) {
 	osrfLogWarning( OSRF_LOG_MARK, "Received signal [%d], cleaning up...", signo );
+
+    /* for now, just forcibly exit.  This is not a friendly way to clean up, but
+     * there is a bug in osrfRouterFree() (in particular with cleaning up sockets),
+     * that can cause the router process to stick around.  If we do this, we 
+     * are guaranteed to exit.  
+     */
+    _exit(0);
+
 	osrfConfigCleanup();
 	osrfRouterFree(router);
 	router = NULL;



More information about the opensrf-commits mailing list