- Timestamp:
- 05/20/12 17:37:35 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/dimctrl.cc
r13764 r13797 116 116 public: 117 117 DimCtrl(ostream &out=cout) : MessageDimTX("DIM_CONTROL", out), 118 fLabel(-3), fStop( false), fVerbosity(0), fDebug(false), fIsServer(false),118 fLabel(-3), fStop(-1), fVerbosity(0), fDebug(false), fIsServer(false), 119 119 fSrvState("DIM_CONTROL/STATE", "C", 120 120 "Provides the state of the state machine as quality of service." … … 234 234 fVerbosity = 40; 235 235 236 if (conf.Has("verbosity")) 237 fVerbosity = conf.Get<uint32_t>("verbosity"); 238 239 if (conf.Get<bool>("quiet")) 240 fVerbosity = 90; 241 236 242 fIsServer = conf.Get<bool>("server"); 243 fDebug = conf.Get<bool>("debug"); 244 237 245 if (fIsServer) 238 246 { … … 240 248 // an EXIT if another instance is already running 241 249 DimServer::start("DIM_CONTROL"); 242 sleep(1);250 //sleep(1); 243 251 fSrvState.setQuality(-3); 244 252 fSrvState.Update("[boot]"); 245 253 } 246 254 247 if (conf.Has("verbosity"))248 fVerbosity = conf.Get<uint32_t>("verbosity");249 250 if (conf.Get<bool>("quiet"))251 fVerbosity = 90;252 253 fDebug = conf.Get<bool>("debug");254 255 255 return -1; 256 256 } 257 257 258 void Stop(int stop= 1) { fStop = stop; Readline::SetLabel(0); }258 void Stop(int stop=0) { fStop = stop; Readline::SetLabel(0); } 259 259 int Run(bool) 260 260 { 261 while ( !fStop)261 while (fStop<0) 262 262 { 263 263 const string s = fScript; … … 271 271 usleep(1000); 272 272 } 273 return fStop-1; } 273 274 return fStop; 275 } 276 274 277 }; 275 278
Note:
See TracChangeset
for help on using the changeset viewer.