My mpi application has a signal handler to catch ctrl-C or ctrl-break one Windows, and when this application is run in serial in the cmd window, it is seen to work. It is intercepted, the code then does its last ouput, and the code quits gracefully.
However, when I run it in parallel with, e.g., "mpiexec -np 2 myparapp.exe", and hit ctrl-C or ctrl-break, the signal appears to not get to my application, because it is killed abruptly. Is there something special I need to do, like ensure my signal handler is registered at a particular place in the code?
I am using MSMPI, which I understand is a fork from mpich.