Changeset 10272


Ignore:
Timestamp:
03/30/11 15:51:29 (14 years ago)
Author:
tbretz
Message:
Implemented a proper interfacing to the reception of a possible EXIT command.
File:
1 edited

Legend:

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

    r10271 r10272  
    319319                fServiceList.SetHandler(this);
    320320                CheckForServicesUpdate();
    321 
    322                 //All configuration done, callback funtions set, go to ready state and thus prevent the run loop from being executed
    323                 SetReady();
    324321}
    325322// --------------------------------------------------------------------------
     
    10761073    // Start io_service.run to only use the commandHandler command detaching
    10771074    DataLogger logger(wout);
    1078 
    1079     while (1)
    1080         usleep(1);
     1075    logger.Run(true);
    10811076
    10821077    return 0;
     
    10951090            win << kRed << "ERROR - Couldn't open log-file " << conf.Get<std::string>("log") << ": " << strerror(errno) << std::endl;
    10961091
    1097     DataLogger io_service(wout);
    1098 
    1099     shell.SetReceiver(io_service);
     1092    DataLogger logger(wout);
     1093
     1094    shell.SetReceiver(logger);
     1095
     1096    logger.SetReady();
    11001097    shell.Run();                 // Run the shell
     1098    logger.SetNotReady();
    11011099
    11021100    return 0;
Note: See TracChangeset for help on using the changeset viewer.