chiark / gitweb /
Even better t-watch cleanup!
authorRichard Kettlewell <rjk@greenend.org.uk>
Sat, 5 Mar 2011 09:28:20 +0000 (09:28 +0000)
committerRichard Kettlewell <rjk@greenend.org.uk>
Sat, 5 Mar 2011 09:28:20 +0000 (09:28 +0000)
tests/t-watch

index 3b4e21b..871e0b1 100755 (executable)
@@ -23,7 +23,7 @@ rm -f WatchMe watch-results
 watchfile WatchMe > watch-results &
 pid=$!
 
-trap "kill ${pid} >/dev/null 2>&1" EXIT INT HUP TERM
+trap "kill ${pid} >/dev/null 2>&1 || true" EXIT INT HUP TERM
 
 sleep 1                         # allow watchfile to start up