[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[Git][ftp-team/dak][lockfile] 2 commits: Declare the lock list as associative array



Title: GitLab

Bastian Blank pushed to branch lockfile at Debian FTP Team / dak

Commits:

1 changed file:

Changes:

  • config/debian/cronscript
    ... ... @@ -123,7 +123,7 @@ function lock() {
    123 123
             TIME=300
    
    124 124
         fi
    
    125 125
         # Now try to get the lock
    
    126
    -    flock ${flockparm} --timeout ${TIME} LOCKFD[${LOCK}]
    
    126
    +    flock ${flockparm} --timeout ${TIME} ${LOCKFD[${LOCK}]}
    
    127 127
     }
    
    128 128
     
    
    129 129
     function unlock() {
    
    ... ... @@ -149,7 +149,7 @@ function unlock() {
    149 149
         fi
    
    150 150
     
    
    151 151
         # Where we store lockfile filehandles
    
    152
    -    declare -a LOCKFD
    
    152
    +    declare -A LOCKFD
    
    153 153
     
    
    154 154
         # common functions are "outsourced"
    
    155 155
         . "${configdir}/common"
    


  • Reply to: