[mpich-discuss] Handle CTRL-C
    Pavan Balaji 
    balaji at mcs.anl.gov
       
    Thu Apr 12 12:40:09 CDT 2012
    
    
  
On 04/12/2012 10:56 AM, Renato Tegon Forti wrote:
> How I can handle CTRL-C signal in MPI programa?
>
> I need do some clean up if user send CTRL-C signal! And then exit!
When the user sends a Ctrl-C to mpiexec, it is directly forwarded to the 
MPI processes.  You can catch the signal in the processes and do 
whatever cleanup you need to.  If mpiexec receives a second Ctrl-C, it 
force kills the processes.
  -- Pavan
-- 
Pavan Balaji
http://www.mcs.anl.gov/~balaji
    
    
More information about the mpich-discuss
mailing list