8#include "daq/slc/readout/ProcessListener.h"
9#include "daq/slc/readout/ProcessController.h"
11#include <daq/slc/runcontrol/RCCallback.h>
13#include <daq/slc/system/LogFile.h>
14#include <daq/slc/system/Process.h>
18void ProcessListener::run()
20 Process& process(m_con->getProcess());
21 std::string process_name = m_con->getParName();
23 if (not process.wait()) {
24 callback.log(LogFile::FATAL,
"Failed to wait processed process %s",
25 process_name.c_str());
28 callback.log(LogFile::DEBUG, process_name +
" : termineted");
29 callback.log(LogFile::DEBUG,
"%s : waitpid_returned %d status = %d", process_name.c_str(), process.waitpid_result(),
30 process.waitpid_status());
32 callback.set(m_con->getParName() +
".pid", -1);
Abstract base class for different kinds of events.