File indexing completed on 2024-04-06 12:13:08
0001 #include "FWCore/SharedMemory/interface/WorkerMonitorThread.h"
0002 #include <iostream>
0003 #include <unistd.h>
0004 #include <cstdlib>
0005 #include <cstring>
0006
0007 int main(int argc, char** argv) {
0008 edm::shared_memory::WorkerMonitorThread monitor;
0009
0010 monitor.startThread();
0011
0012 monitor.setAction([&]() { std::cerr << "Action run\n"; });
0013 if (argc > 1) {
0014 char* end;
0015 int sig = std::strtol(argv[1], &end, 10);
0016 raise(sig);
0017 }
0018 return 0;
0019 }