I'm using a IntelMPI with PBS.
When I send a SIGTERM signal using qdel to my job mpirun exits immediatly and my program that is called by mpirun has no time to finish its cleanup work.
if [ x$PBS_ENVIRONMENT != x ]; then
trap "" SIGTERM
in my ~/.profile to prevent any shell from exiting when it gets the SIGTERM)
How can I tell IntelMPI's mpirun not to exit on SIGTERM?
I have the same problem
If I send SIGUSR1 it gets passed to the subproceesses they can save there state and shutdown cleanly.
If I send a SIGINT (Ctrl-C) mpirun exits and my processes get killed without being able to save state. How do I make mpirun signore all signals and pass them on to the subprocesses?