summaryrefslogtreecommitdiff
path: root/infra/dgit-mirror-rsync
diff options
context:
space:
mode:
authorIan Jackson <ijackson@chiark.greenend.org.uk>2015-07-11 17:40:26 +0100
committerIan Jackson <ijackson@chiark.greenend.org.uk>2015-07-11 19:31:19 +0100
commit2b5c351f4b03f0110f386e15c3f30b1747cbc62f (patch)
tree89cea75e114567bcaf6c9d88d7385446f7e95e82 /infra/dgit-mirror-rsync
parent86a8ff1a0f02829b07bf7cd2fdd198ce612b37d4 (diff)
Mirroring: Sort out stderr plumbing
Diffstat (limited to 'infra/dgit-mirror-rsync')
-rwxr-xr-xinfra/dgit-mirror-rsync4
1 files changed, 2 insertions, 2 deletions
diff --git a/infra/dgit-mirror-rsync b/infra/dgit-mirror-rsync
index 2858047..0162042 100755
--- a/infra/dgit-mirror-rsync
+++ b/infra/dgit-mirror-rsync
@@ -105,13 +105,13 @@ lock-and-process () {
}
attempt () {
- exec >"$queue/$package.err" 2>&1
+ exec 3>&2 >"$queue/$package.err" 2>&1
if actually; then
rm -f "$queue/$package.a"
mv -f "$queue/$package.err" "$queue/$package.log"
rm "$queue/$package.lock"
else
- cat >&2 "$queue/$package.err"
+ cat >&3 "$queue/$package.err"
exit 127
fi
}