Changeset 12458 for trunk/FACT++


Ignore:
Timestamp:
11/09/11 00:11:23 (13 years ago)
Author:
tbretz
Message:
Fixed a problem with the startup.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/src/dimctrl.cc

    r11578 r12458  
    99{
    1010    // A normal kill will call its destructor! (Very nice feature ;) )
    11     static T shell(conf.GetName().c_str(), conf.Get<int>("console")!=1);
     11    static T shell(conf.GetName().c_str(),
     12                   conf.Has("console") ? conf.Get<int>("console")!=1 : conf.Get<bool>("null"));
    1213
    1314    WindowLog &win  = shell.GetStreamIn();
     
    1516
    1617    if (conf.Has("log"))
    17         if (!wout.OpenLogFile(conf.Get<string>("log")))
     18        if (!wout.OpenLogFile(conf.Get<string>("log"), conf.Get<bool>("append-log")))
    1819            win << kRed << "ERROR - Couldn't open log-file " << conf.Get<string>("log") << ": " << strerror(errno) << endl;
    1920
     
    7576    Dim::Setup(conf.Get<string>("dns"), conf.Get<string>("host"));
    7677
    77     if (conf.Get<int>("console")==0)
     78    if (!conf.Has("console"))
    7879        //Main<RemoteShell, DummyService>(conf);
    7980        RunShell<RemoteShell>(conf);
Note: See TracChangeset for help on using the changeset viewer.