dmtcp/dmtcp — pull request #8 by artpol84 (2014-10-11 00:40:21+00:00)
Title: Fix PMI shutdown problem with Hydra PMI

The core of that fix is that I determine whether the process was spawned by srun explicitly (via DMTCP wrapper) or not.
If we use SLURM PMI: srun dmtcp_checkpoint ./mpiapp
DMTCP won't notice srun. In this case I assume that we need PMI shutdown.
Otherwise - we don't need it.