Hello,
How does mpirun or mpiexec handle Ctrl+C? I noticed when I use Ctrl+C on a
running python script (without MPI), this generates a KeyboardInterrupt
exception which I can catch and do something with, but when I use mpirun to
run the python script, so far as I can tell, no exception is generated; the
script just dies. I'd like to be able to catch an exception within my
script and do some cleaning up before killing the script, but I can't
figure out how to do this. I've already posted on the mpi4py message board (
https://groups.google.com/forum/#!topic/mpi4py/x8tloLNGWTk) and was
referred here.
Thanks!
Seth

Reply via email to