Skip to content

Executable: bind SIGTERM to interrupt handler

Simon Spannagel requested to merge sigterm into master

We discovered that unlike the bsub manager (who sends SIGINT), HTCondor seems to send SIGTERM to notify a job of its approaching end. This MR binds the SIGTERM signal to the same signal handler that processes our interrupt (Ctrl-C) signal, ie. the last event is finished, files are stored to disk and the program exits.

This also works when sending a kill signal on the same system, i.e. kill allpix.

@pschutze should solve your HTCondor issue.

Merge request reports