chiark
/
gitweb
/
~cjwatson
/
bin.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
9d3f6dd
)
disown background lockfile-touch process
author
Colin Watson
<cjwatson@chiark.greenend.org.uk>
Tue, 15 Apr 2008 15:56:45 +0000
(15:56 +0000)
committer
Colin Watson
<cjwatson@chiark.greenend.org.uk>
Tue, 15 Apr 2008 15:56:45 +0000
(15:56 +0000)
bsmtp-pull
patch
|
blob
|
history
diff --git
a/bsmtp-pull
b/bsmtp-pull
index 439bee284fc258cb84f0f6c2a85f189e30e28569..ebaee7ed7a652a2962456ab9756e907e40757cae 100755
(executable)
--- a/
bsmtp-pull
+++ b/
bsmtp-pull
@@
-24,6
+24,7
@@
lockfile-create "$HOST"
lockfile-touch "$HOST" &
TOUCH="$!"
trap 'kill "$TOUCH"; lockfile-remove "$HOST"' EXIT ERR HUP INT QUIT TERM
+disown %1
ssh -2 -i "$HOME/.ssh/id-bsmtp-$HOST" -C "$HOST" bsmtp-pull-server > "$HOST"
[ -s "$HOST" ] || exit 0