- Timestamp:
- 11/09/11 00:11:23 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/dimctrl.cc
r11578 r12458 9 9 { 10 10 // 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")); 12 13 13 14 WindowLog &win = shell.GetStreamIn(); … … 15 16 16 17 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"))) 18 19 win << kRed << "ERROR - Couldn't open log-file " << conf.Get<string>("log") << ": " << strerror(errno) << endl; 19 20 … … 75 76 Dim::Setup(conf.Get<string>("dns"), conf.Get<string>("host")); 76 77 77 if ( conf.Get<int>("console")==0)78 if (!conf.Has("console")) 78 79 //Main<RemoteShell, DummyService>(conf); 79 80 RunShell<RemoteShell>(conf);
Note:
See TracChangeset
for help on using the changeset viewer.