fixed problem where a NULL unixconfig was causing segfault
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 22 Aug 2005 20:07:52 +0000 (20:07 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 22 Aug 2005 20:07:52 +0000 (20:07 +0000)
took the sleep out of the apachemods makefile

git-svn-id: svn://svn.open-ils.org/ILS/trunk@1694 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/src/apachemods/Makefile
OpenSRF/src/libstack/osrf_system.c
OpenSRF/src/libtransport/transport_session.c

index 4a99272..da90b63 100644 (file)
@@ -25,18 +25,18 @@ xmltools.o: xmltools.c xmltools.h
 mod_xmltools-install:
        echo $@
        $(APXS2) -i -a -n mod_xmltools mod_xmltools.so
-       @echo "-----------------------------------------------";
-       @echo -e "* Important * : Change httpd.conf from this: \n \
+       echo "-----------------------------------------------";
+       echo -e "* Important * : Change httpd.conf from this: \n \
                LoadModule mod_xmltools_module modules/mod_xmltools.so \n \
                to this: \n \
                LoadModule mod_xmltools    modules/mod_xmltools.so"
-       @echo -e "Supported configuration options:\
+       echo -e "Supported configuration options:\
                        \nXMLToolsDefaultLocale <locale>\
                        \nXMLToolsLocaleDir  <web-locale-dir>\
                        \nXMLToolsPreXSL <pre_xsl_file>\
                        \nXMLToolsPostXSL <post_xsl_file>"
-       @echo "-----------------------------------------------";
-       @sleep 3;
+       echo "-----------------------------------------------";
+       echo ""
 
 clean:
        echo $@
index 8c8ced8..92ddb48 100644 (file)
@@ -33,6 +33,7 @@ int osrf_system_bootstrap_client( char* config_file, char* contextnode ) {
        info_handler("Bootstrapping system with domain %s, port %d, and unixpath %s", domain, iport, unixpath );
 
        transport_client* client = client_init( domain, iport, unixpath, 0 );
+       
        char buf[256];
        memset(buf,0,256);
        char* host = getenv("HOSTNAME");
index 07bdad0..44f88a8 100644 (file)
@@ -68,7 +68,10 @@ transport_session* init_transport(  char* server,
        
        session->port = port;
        session->server = strdup(server);
-       session->unix_path = strdup(unix_path);
+       if(unix_path)
+               session->unix_path = strdup(unix_path);
+       session->unix_path = NULL;
+
        session->sock_id = 0;
 
        /* this will be handed back to us in callbacks */