Changeset 5650

Show
Ignore:
Timestamp:
10/31/09 15:44:35 (3 weeks ago)
Author:
balaji
Message:

Bug fix for the failing timeout test in the nightly tests.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • mpich2/trunk/src/pm/hydra/pm/pmiserv/pmi_serv_launch.c

    r5649 r5650  
    480480{ 
    481481    struct HYD_proxy *proxy; 
    482     int sockets_open, all_procs_exited; 
     482    int sockets_open, all_procs_exited, infinite = -1; 
    483483    HYD_status status = HYD_SUCCESS; 
    484484 
     
    496496            HYDU_ERR_POP(status, "error waiting for event\n"); 
    497497 
    498             /* If the timeout expired, raise a SIGINT and kill all the 
    499              * processes */ 
     498            /* timeout expired */ 
    500499            if (HYDU_time_left(HYD_handle.start, HYD_handle.timeout) == 0) { 
    501500                status = HYD_pmcd_pmi_serv_cleanup(); 
    502501                HYDU_ERR_POP(status, "cleanup of processes failed\n"); 
     502 
     503                /* Reset timer to infinite */ 
     504                HYDU_time_set(&HYD_handle.timeout, &infinite); 
     505                continue; 
    503506            } 
    504507