Changeset 3 for trunk/pbs_drmaa/job.c


Ignore:
Timestamp:
02/02/11 22:37:40 (11 years ago)
Author:
mmamonski
Message:

try to be resistant to torque restarts - avoid double disconnect == double free

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/pbs_drmaa/job.c

    r1 r3  
    201201                                case PBSE_PROTOCOL: 
    202202                                case PBSE_EXPIRED: 
    203                                         pbs_disconnect( session->pbs_conn ); 
     203                                        if ( session->pbs_conn >= 0 ) 
     204                                                pbs_disconnect( session->pbs_conn ); 
    204205                                        sleep(1); 
    205206                                        session->pbs_conn = pbs_connect( session->super.contact ); 
Note: See TracChangeset for help on using the changeset viewer.