Changeset 93 for trunk/pbs_drmaa


Ignore:
Timestamp:
07/25/13 07:38:44 (11 years ago)
Author:
mmamonski
Message:

Segfault on wait thread enabled

Location:
trunk/pbs_drmaa
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/pbs_drmaa/log_reader.c

    r85 r93  
    359359                                                                        attribs = pbsdrmaa_add_attr(attribs, PBSDRMAA_JOB_STATE, "C"); 
    360360                                                                        attribs = pbsdrmaa_add_attr(attribs, PBSDRMAA_MTIME, timestamp_unix); 
    361                                                                         attribs = pbsdrmaa_add_attr(attribs, PBSDRMAA_EXIT_STATUS, "-2"); 
     361                                                                        attribs = pbsdrmaa_add_attr(attribs, PBSDRMAA_EXIT_STATUS, "-101"); 
    362362                                                                 } 
    363363                                                                else 
  • trunk/pbs_drmaa/session.c

    r85 r93  
    9595                self = (pbsdrmaa_session_t*)fsd_drmaa_session_new(contact); 
    9696                fsd_realloc( self, 1, pbsdrmaa_session_t ); 
     97 
     98                fsd_mutex_lock( &self->super.mutex ); 
     99 
    97100                self->super_wait_thread = NULL; 
    98101 
     
    125128                self->connection_max_lifetime =  30; /* 30 seconds */ 
    126129 
     130                fsd_mutex_unlock( &self->super.mutex ); 
    127131         } 
    128132        EXCEPT_DEFAULT 
     
    130134                if( self ) 
    131135                  { 
     136                        fsd_mutex_unlock( &self->super.mutex ); 
    132137                        self->super.destroy( &self->super ); 
    133138                        self = NULL; 
Note: See TracChangeset for help on using the changeset viewer.