Changeset 10272
- Timestamp:
- 03/30/11 15:51:29 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/dataLogger.cc
r10271 r10272 319 319 fServiceList.SetHandler(this); 320 320 CheckForServicesUpdate(); 321 322 //All configuration done, callback funtions set, go to ready state and thus prevent the run loop from being executed323 SetReady();324 321 } 325 322 // -------------------------------------------------------------------------- … … 1076 1073 // Start io_service.run to only use the commandHandler command detaching 1077 1074 DataLogger logger(wout); 1078 1079 while (1) 1080 usleep(1); 1075 logger.Run(true); 1081 1076 1082 1077 return 0; … … 1095 1090 win << kRed << "ERROR - Couldn't open log-file " << conf.Get<std::string>("log") << ": " << strerror(errno) << std::endl; 1096 1091 1097 DataLogger io_service(wout); 1098 1099 shell.SetReceiver(io_service); 1092 DataLogger logger(wout); 1093 1094 shell.SetReceiver(logger); 1095 1096 logger.SetReady(); 1100 1097 shell.Run(); // Run the shell 1098 logger.SetNotReady(); 1101 1099 1102 1100 return 0;
Note:
See TracChangeset
for help on using the changeset viewer.