diff options
author | intrigeri <intrigeri@boum.org> | 2011-09-23 16:51:17 +0200 |
---|---|---|
committer | intrigeri <intrigeri@boum.org> | 2011-09-23 16:51:17 +0200 |
commit | 66703ca1faff3805fbab0af58a2143cc0ffe4d96 (patch) | |
tree | 7d78e9da57c7e7b83b9788fd9865091762d53d47 /src | |
parent | 2469656db14d4315dfbfc98cc20e81c2cdd0bd96 (diff) | |
parent | 47bc20217c04f133c14b168ed15bc715c869c77e (diff) | |
download | backupninja-66703ca1faff3805fbab0af58a2143cc0ffe4d96.tar.gz backupninja-66703ca1faff3805fbab0af58a2143cc0ffe4d96.tar.bz2 |
Merge commit 'backupninja-0.9.10' into debian
Diffstat (limited to 'src')
-rwxr-xr-x | src/backupninja.in | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/backupninja.in b/src/backupninja.in index f6a5b0e..0400828 100755 --- a/src/backupninja.in +++ b/src/backupninja.in @@ -325,7 +325,7 @@ function process_action() { # start locked section : avoid concurrent execution of the same backup # uses a construct specific to shell scripts with flock. See man flock for details - ( + { debug "executing handler in locked section controlled by $lockfile" flock -x -w 5 200 # if all is good, we acquired the lock @@ -352,7 +352,7 @@ function process_action() { debug "failed to acquire lock" echo "Fatal: Could not acquire lock $lockfile. A backup is probably already running for $file." >>$bufferfile fi - ) 200> $lockfile + } 200> $lockfile # end of locked section _warnings=`cat $bufferfile | grep "^Warning: " | wc -l` |