16 : enableSigInt_(pset.getUntrackedParameter<bool>(
"EnableCtrlC")) {
25 desc.
addUntracked<
bool>(
"EnableCtrlC",
true)->setComment(
26 "If 'true', you can stop a cmsRun job gracefully by sending it a '<control> c' keyboard interrupt (i.e. SIGINT).");
27 descriptions.
add(
"UnixSignalService", desc);
29 "This service sets up unix signal handlers for the unix signal SIGUSR2 and optionally SIGINT"
30 " so that when cmsRun is sent a signal the application will stop processing and shut down gracefully.");
ParameterDescriptionBase * addUntracked(U const &iLabel, T const &value)
static void fillDescriptions(ConfigurationDescriptions &descriptions)
void installCustomHandler(int signum, CFUNC func)
void setComment(std::string const &value)
void add(std::string const &label, ParameterSetDescription const &psetDescription)
void ep_sigusr2(int, siginfo_t *, void *)
UnixSignalService(ParameterSet const &ps)