libs/stream_message/src/service.cxx
// ===========================================================================
// This function will start the name_server.  Returns false to indicate 
// failure, true to indicate that process was started.
//
This function will start the name_server.  Returns false to indicate
failure, true to indicate that process was started.
This function will start the name_server . Returns false to indicate failure true to indicate that process was started .
static bool start_name_server() {
    char *p = getenv("PSETHOME");
#ifdef ISO_CPP_HEADERS
    stringstream cmd;
#else
    strstream cmd;
#endif
    if(p != NULL) {
	cmd << p << "/bin/";
    }
    cmd << "nameserv";
#ifndef ISO_CPP_HEADERS
    cmd << ends;
#endif
    string cmd_str = cmd.str();
    char *argv[] = { NULL };
#ifdef DEBUG19953
    fprintf(stderr, "ServiceName starting name server.");
    fflush(stderr);
#endif
    return start_process(cmd_str.c_str(), argv, 1) != 0;
}
static bool start_name_server ( ) { char * p = getenv ( " " ) ; #ifdef ISO_CPP_HEADERS stringstream cmd ; #else strstream cmd ; #endif if ( p != NULL ) { cmd << p << " " ; } cmd << " " ; #ifndef ISO_CPP_HEADERS cmd << ends ; #endif string cmd_str = cmd . str ( ) ; char * argv [ ] = { NULL } ; #ifdef DEBUG19953 fprintf ( stderr , " " ) ; fflush ( stderr ) ; #endif return start_process ( cmd_str . c_str ( ) , argv , 1 ) != 0 ; }
This function will start the name_server.
This function will start the name_server .