Changeset 1832


Ignore:
Timestamp:
14/09/2007 22:24:23 (4 years ago)
Author:
chris
Message:

Pass the command socket name from the configuration to WinNamedPipeStream?,
to allow multiple command sockets per system.

Remove unnecessary newlines from log messages.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • box/chris/general/bin/bbackupctl/bbackupctl.cpp

    r1790 r1832  
    146146        { 
    147147#ifdef WIN32 
    148                 connection.Connect(BOX_NAMED_PIPE_NAME); 
     148                std::string socket = conf.GetKeyValue("CommandSocket"); 
     149                connection.Connect(socket); 
    149150#else 
    150151                connection.Open(Socket::TypeUNIX, conf.GetKeyValue("CommandSocket").c_str()); 
     
    201202                        " seconds\n" 
    202203                        "  MinimumFileAge = " << minimumFileAge << " seconds\n" 
    203                         "  MaxUploadWait = " << maxUploadWait << " seconds\n"); 
     204                        "  MaxUploadWait = " << maxUploadWait << " seconds"); 
    204205        } 
    205206 
     
    313314                                        if (syncIsRunning) 
    314315                                        { 
    315                                                 if (!quiet) BOX_INFO("Sync finished.\n"); 
     316                                                if (!quiet) BOX_INFO("Sync finished."); 
    316317                                                // Send a quit command to finish nicely 
    317318                                                connection.Write("quit\n", 5); 
     
    336337                                        if(!quiet) 
    337338                                        { 
    338                                                 BOX_INFO("Succeeded.\n"); 
     339                                                BOX_INFO("Succeeded."); 
    339340                                        } 
    340341                                        finished = true; 
Note: See TracChangeset for help on using the changeset viewer.