Skip to content
Commit ad990dbe authored by Andy Gospodarek's avatar Andy Gospodarek Committed by David S. Miller
Browse files

samples/bpf: run cleanup routines when receiving SIGTERM



Shahid Habib noticed that when xdp1 was killed from a different console the xdp
program was not cleaned-up properly in the kernel and it continued to forward
traffic.

Most of the applications in samples/bpf cleanup properly, but only when getting
SIGINT.  Since kill defaults to using SIGTERM, add support to cleanup when the
application receives either SIGINT or SIGTERM.

Signed-off-by: default avatarAndy Gospodarek <andy@greyhouse.net>
Reported-by: default avatarShahid Habib <shahid.habib@broadcom.com>
Acked-by: default avatarAlexei Starovoitov <ast@kernel.org>
Acked-by: default avatarDaniel Borkmann <daniel@iogearbox.net>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent d2be3667
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment