X-Git-Url: https://iankelling.org/git/?p=distro-setup;a=blobdiff_plain;f=prof-tail;fp=prof-tail;h=aa022bc60617f39b2fdbc64173a1a5e2b8560f5a;hp=638e57600dfa61ea5c1d2aa00608e02cb9ec0169;hb=7b33a0e88d9ccdaf8601aa77f9fc597d592b4c10;hpb=12e4748d67a2891d120f0ce7c29c2cf44a6119df diff --git a/prof-tail b/prof-tail index 638e576..aa022bc 100644 --- a/prof-tail +++ b/prof-tail @@ -20,12 +20,18 @@ # See the License for the specific language governing permissions and # limitations under the License. +# hacky way to kill off old leftover processes +pkill -O 1 -x 'prof-tail' + set -e; . /usr/local/lib/bash-bear; set +e # kill 0 doesn't seem to be documented in man bash, but it kills the # background processes. # https://unix.stackexchange.com/questions/67532/what-does-kill-0-do-actually/67552 -trap "kill 0" EXIT +# commented out because the way I exit prof-tail is from an ssh disconnect from +# the connection dying or killing konsole, and this has no effect on either. +#trap "kill 0" EXIT + xmpp_users=( anoukr