Re: [OMPI users] Clean termination after receiving multiple SIGINT

2020-04-06 Thread Kreutzer, Moritz via users
k for you? On Apr 6, 2020, at 7:57 AM, Kreutzer, Moritz via users mailto:users@lists.open-mpi.org>> wrote: Thanks for the explanation, Ralph! I guess the reason we need to pass the signal down is to achieve correct behavior when a signal does not come via CTRL+C, but in case someone ki

Re: [OMPI users] Clean termination after receiving multiple SIGINT

2020-04-06 Thread Kreutzer, Moritz via users
eed to pass the signal down? Are you trying to do your cleanup _before_ mpirun does its? Guess I'm wondering: why not just trap the signal, do your cleanup, and then wait for mpirun to terminate? On Apr 6, 2020, at 6:39 AM, Kreutzer, Moritz via users mailto:users@lists.open-mpi.org>&g

[OMPI users] Clean termination after receiving multiple SIGINT

2020-04-06 Thread Kreutzer, Moritz via users
Hi, We are invoking mpirun from within a script which installs some signal handlers. Now, if we abort an Open MPI run with CTRL+C, the system sends SIGINT to the entire process group. Hence, the mpirun process receives a SIGINT from the system with si_code=SI_KERNEL. Additionally, our own signa