aboutsummaryrefslogtreecommitdiffstats
path: root/tests/07-sync-live-multi/run
diff options
context:
space:
mode:
authorGuilhem Moulin <guilhem@fripost.org>2019-05-28 00:21:43 +0200
committerGuilhem Moulin <guilhem@fripost.org>2019-05-28 00:24:09 +0200
commit03460fe3d2657c626d406e57d75f6f9c6fa4338e (patch)
treee3ba35b5b36a47432c645b21e6ea509001816180 /tests/07-sync-live-multi/run
parentd385fd2817a96bc952b086533798bbf009d3d54f (diff)
tests: don't fail when a pid can't be killed.
(Usually on ESRCH.)
Diffstat (limited to 'tests/07-sync-live-multi/run')
-rw-r--r--tests/07-sync-live-multi/run12
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/07-sync-live-multi/run b/tests/07-sync-live-multi/run
index bf0d2f5..9dca2cf 100644
--- a/tests/07-sync-live-multi/run
+++ b/tests/07-sync-live-multi/run
@@ -15,12 +15,12 @@ interimap --config="config3" --watch=1 & pid3=$!
abort() {
# kill interimap process and its children
- pkill -P "$pid" -TERM
- kill -TERM "$pid"
- pkill -P "$pid2" -TERM
- kill -TERM "$pid2"
- pkill -P "$pid3" -TERM
- kill -TERM "$pid3"
+ pkill -P "$pid" -TERM || true
+ kill -TERM "$pid" || true
+ pkill -P "$pid2" -TERM || true
+ kill -TERM "$pid2" || true
+ pkill -P "$pid3" -TERM || true
+ kill -TERM "$pid3" || true
wait
}
trap abort EXIT INT TERM