chiark / gitweb /
disown background lockfile-touch process
authorColin Watson <cjwatson@chiark.greenend.org.uk>
Tue, 15 Apr 2008 15:56:45 +0000 (15:56 +0000)
committerColin Watson <cjwatson@chiark.greenend.org.uk>
Tue, 15 Apr 2008 15:56:45 +0000 (15:56 +0000)
bsmtp-pull

index 439bee2..ebaee7e 100755 (executable)
@@ -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