mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-02 10:00:54 +00:00
Bug 1168612
: don't spoil the exit status with a trap function; r=mrrrgn
--HG-- extra : rebase_source : daf3b03ae83e8025bdca09aa6fa3489b554e1348
This commit is contained in:
parent
ba86c51ed4
commit
30135e0844
@ -68,7 +68,9 @@ if [[ -z ${MOZHARNESS_SCRIPT} ]]; then exit 1; fi
|
||||
if [[ -z ${MOZHARNESS_CONFIG} ]]; then exit 1; fi
|
||||
|
||||
cleanup() {
|
||||
[ -n "$xvfb_pid" ] && kill $xvfb_pid
|
||||
if [ -n "$xvfb_pid" ]; then
|
||||
kill $xvfb_pid || true
|
||||
fi
|
||||
}
|
||||
trap cleanup EXIT INT
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user