From dd00b5d36bbc62eb27ecc7058c6d33c139597479 Mon Sep 17 00:00:00 2001 From: erickson Date: Fri, 5 Aug 2005 15:38:30 +0000 Subject: [PATCH] move the log_free to after the cleanup is done so we don't see error logging going to the terminal after log_free git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@467 9efc2488-bf62-4759-914b-345cdb29e865 --- src/jserver/jserver-c_main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/jserver/jserver-c_main.c b/src/jserver/jserver-c_main.c index 9bcd8cd..9c6fe2a 100644 --- a/src/jserver/jserver-c_main.c +++ b/src/jserver/jserver-c_main.c @@ -17,8 +17,8 @@ void launch_server(); void sig_hup_handler( int a ) { warning_handler(" +++ Re-launching server for SIGHUP"); - log_free(); jserver_free(js); + log_free(); unlink(unix_sock_file); launch_server(); @@ -28,8 +28,8 @@ void sig_hup_handler( int a ) { /* die gracefully */ void sig_int_handler( int a ) { warning_handler(" +++ Shutting down because of user signal"); - log_free(); jserver_free(js); + log_free(); unlink(unix_sock_file); exit(0); } -- 2.11.0