Ignore:
Timestamp:
08/04/10 15:10:10 (14 years ago)
Author:
mmaipsl
Message:

MM : change temporary card for marshalling device with explicit mutex extension.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libIGCM/libIGCM_card/libIGCM_card.ksh

    r268 r329  
    195195        # The tmpfile uses now the real path of the card to be modified,  
    196196        # not just a local tmpfile with PID. 
    197         tmpfile=$1_$$ 
     197        tmpfile=$1_mutex_$$ 
    198198 
    199199        # Watch for possible conflics : Check for other tmpfiles. 
    200200        unset tmpfiles 
    201         set +A tmpfiles -- $( ls $1_[0-9]* 2>/dev/null ) 
     201        set +A tmpfiles -- $( ls $1_mutex_[0-9]* 2>/dev/null ) 
    202202        typeset isleep 
    203203        ((isleep=0)) 
     
    207207            ((isleep=isleep+1)) 
    208208            if [ isleep -gt 20 ] ; then 
    209                 echo "Too many loops wating for other process working on " $1 ". We continue." 
     209                echo "Too many loops waiting for other process working on " $1 ". We continue." 
    210210                echo "You should see if one process of your run or post-treatment may have terminated suddenly." 
    211211                echo "Afer, you should erase this(those) file(s) : " ${tmpfiles[@]} 
     
    214214            fi 
    215215            unset tmpfiles 
    216             set +A tmpfiles -- $( ls $1_[0-9]* 2>/dev/null ) 
     216            set +A tmpfiles -- $( ls $1_mutex_[0-9]* 2>/dev/null ) 
    217217        done 
    218218 
Note: See TracChangeset for help on using the changeset viewer.