move the log_free to after the cleanup is done so we don't see
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Fri, 5 Aug 2005 15:38:30 +0000 (15:38 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
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/ILS/trunk@1618 dcc99617-32d9-48b4-a31d-7c20da2025e4

OpenSRF/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); 
 }