move the log_free to after the cleanup is done so we don't see
authorerickson <erickson@9efc2488-bf62-4759-914b-345cdb29e865>
Fri, 5 Aug 2005 15:38:30 +0000 (15:38 +0000)
committererickson <erickson@9efc2488-bf62-4759-914b-345cdb29e865>
Fri, 5 Aug 2005 15:38:30 +0000 (15:38 +0000)
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

index 9bcd8cd..9c6fe2a 100644 (file)
@@ -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); 
 }