[MPICH] how to cleanup in case of abnormal termination

Zhengting Gan gzt036 at gmail.com
Fri Oct 6 22:40:36 CDT 2006


Hello all,

Could anyone show me how to exit MPICH cleanly in case of abnormal 
termination? For example, if the program allocated shared memory and 
semaphores and the program was terminated because of Ctrl-C (SIGINT) or 
float point error (SIGFPE), is it possible to catch the signal and let each 
process clean up its own system resource and terminates gracefully?

Thanks!
Zhengting 




More information about the mpich-discuss mailing list