- Timestamp:
- 08/04/10 15:10:10 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/libIGCM/libIGCM_card/libIGCM_card.ksh
r268 r329 195 195 # The tmpfile uses now the real path of the card to be modified, 196 196 # not just a local tmpfile with PID. 197 tmpfile=$1_ $$197 tmpfile=$1_mutex_$$ 198 198 199 199 # Watch for possible conflics : Check for other tmpfiles. 200 200 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 ) 202 202 typeset isleep 203 203 ((isleep=0)) … … 207 207 ((isleep=isleep+1)) 208 208 if [ isleep -gt 20 ] ; then 209 echo "Too many loops wa ting for other process working on " $1 ". We continue."209 echo "Too many loops waiting for other process working on " $1 ". We continue." 210 210 echo "You should see if one process of your run or post-treatment may have terminated suddenly." 211 211 echo "Afer, you should erase this(those) file(s) : " ${tmpfiles[@]} … … 214 214 fi 215 215 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 ) 217 217 done 218 218
Note: See TracChangeset
for help on using the changeset viewer.