X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;ds=sidebyside;f=scripts%2Flttng-tools%2Fclean_processes_coredump.sh;h=bf856a04475d1780578412d49ec60abfa95c7f79;hb=51c9c62db1805a4cdd96be18df4082f1ac5d81c5;hp=91082fb6b13d75069a4301f4d028e353d7c76aaa;hpb=aae4e17983454e0ecaafd78bc1cf9846a1bedf61;p=lttng-ci.git diff --git a/scripts/lttng-tools/clean_processes_coredump.sh b/scripts/lttng-tools/clean_processes_coredump.sh index 91082fb..bf856a0 100755 --- a/scripts/lttng-tools/clean_processes_coredump.sh +++ b/scripts/lttng-tools/clean_processes_coredump.sh @@ -1,4 +1,4 @@ -#!/bin/bash -exu +#!/bin/bash # # Copyright (C) 2018 - Jonathan Rajotte-Julien # @@ -15,6 +15,8 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see . +set -exu + PGREP=pgrep # Kill any LTTng-related process lttng_processes="$("$PGREP" -l 'lttng|gen-ust-.+')" || true