Changeset 6431

Show
Ignore:
Timestamp:
05/31/10 13:45:28 (3 years ago)
Author:
ronosman
Message:

Remove single instance lock file on exit.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • extensions/pLoader/trunk/src/Uploader/GUI/App.pm

    r6426 r6431  
    106106    images_file 
    107107    app_file 
     108    instance_checker_file 
    108109/; 
    109110 
     
    184185    my( $self ) = @_; 
    185186 
     187    unlink $self->instance_checker_file 
     188        if -e $self->instance_checker_file; 
    186189    $self->store_all; 
    187190 
     
    312315        $pid 
    313316    ); 
     317 
     318    $self->instance_checker_file( 
     319        File::Spec->canonpath( 
     320            File::Spec->catfile( 
     321                File::HomeDir->my_home(), 
     322                $pid 
     323            ) 
     324        ) 
     325    ); 
     326 
    314327} 
    315328