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?