]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - samples/bpf/cookie_uid_helper_example.c
powerpc/hugetlbfs: Export HPAGE_SHIFT
[karo-tx-linux.git] / samples / bpf / cookie_uid_helper_example.c
index b08ab4e889293c30f64b717065e6860603063f7c..9d751e209f313ca8f20a07e6d578cfb98c23defd 100644 (file)
@@ -306,7 +306,9 @@ int main(int argc, char *argv[])
        prog_attach_iptables(argv[2]);
        if (cfg_test_traffic) {
                if (signal(SIGINT, finish) == SIG_ERR)
-                       error(1, errno, "register handler failed");
+                       error(1, errno, "register SIGINT handler failed");
+               if (signal(SIGTERM, finish) == SIG_ERR)
+                       error(1, errno, "register SIGTERM handler failed");
                while (!test_finish) {
                        print_table();
                        printf("\n");