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

Segfault on wait thread enabled

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.