Hologos/tpcp

Cleaning of temp files (workdir) is missing in traps

Hologos opened this issue · 1 comments

I removed calling of tpcp::utils::cleanup() in traps but don't remember the exact reason. It had something to do with my shell (zsh) automatically calling traps even on successful execution of the script. Need more investigating.

Running script in bash and zsh and the result is:

  • tpcp::utils::interrupt_trap() is called when SIGINT is caught
  • tpcp::utils::exit_trap() is always executed (if process is not killed with kill -9)

This means that cleaning should be done in tpcp::utils::exit_trap().