Commit
30d9b9265fe545b36f3938ce36e885a441d99d72
by Oliver Smithtcpdump/dumpcap: move kill_rm_pidfile to inc file
Move kill_rm_pidfile out of the 4 ttcn3 tcpdump/dumpcap scripts into a
shared include file. Use the version of the function that only tries to
kill the command with sudo if it was started with sudo.
This fixes dumpcap not stopping if:
* it was started with ttcn3-tcpdump-start.sh (despite the name it will
start dumpcap instead of tcpdump if dumpcap was found), where it gets
started without sudo, and
* no rule is in the user's sudoers file is set to run kill as root with
NOPASSWD.
Change-Id: Ia63c37b54fb42a8c64a676334cef6f9df4152e18