I'm using multitail via SSH to filter log output on a number of servers like so:
multitail -L "ssh foo.bar.com tail -n 0 -q -F /var/log/out.log | grep match"
This works great, however when multitail exits multiple processes are left hanging around -- three to be exact: bash, tail, and grep.
How can I force multitail (or more likely ssh) to terminate child processes and exit?