Cleaning of temp files (workdir) is missing in traps
Hologos opened this issue · 1 comments
Hologos commented
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.
Hologos commented
Running script in bash and zsh and the result is:
tpcp::utils::interrupt_trap()
is called when SIGINT is caughttpcp::utils::exit_trap()
is always executed (if process is not killed withkill -9
)
This means that cleaning should be done in tpcp::utils::exit_trap()
.