selFIe icon indicating copy to clipboard operation
selFIe copied to clipboard

RFE: catch sigterm/sigint/sigquit

Open martinetd opened this issue 5 years ago • 0 comments

If a job is cancelled, SelFIe will not log anything when the process is killed.

It is possible to intercept the stop signals (int term quit) and print stats (& remember it's been printed to avoid duplicates if handled properly?) then propagate (get existing handler, handle, call next one; if no next one unregister oneself and send again maybe? would need to check that part) so one could get logs on jobs being cancelled, unless they're stuck in IO or something until sigkill finally comes.

martinetd avatar May 19 '20 10:05 martinetd