From: erickson Date: Tue, 11 Mar 2008 22:03:28 +0000 (+0000) Subject: forcing router exit without friendly cleanup for now until a socket bug is squashed X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=6410ece40d358592af64f082dc4a3b7092def0eb;p=working%2FOpenSRF.git forcing router exit without friendly cleanup for now until a socket bug is squashed git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@1282 9efc2488-bf62-4759-914b-345cdb29e865 --- diff --git a/src/router/osrf_router_main.c b/src/router/osrf_router_main.c index 2dec185..30e4975 100644 --- a/src/router/osrf_router_main.c +++ b/src/router/osrf_router_main.c @@ -9,6 +9,14 @@ static osrfRouter* router = NULL; 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;