From ab196412c8f5ddff08fb0801975d8fd45bacd723 Mon Sep 17 00:00:00 2001 From: woodpenker Date: Sun, 6 Nov 2022 17:10:46 +0800 Subject: [PATCH] wakeuptime: remove unused global var `exiting` --- libbpf-tools/wakeuptime.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/libbpf-tools/wakeuptime.c b/libbpf-tools/wakeuptime.c index f2b7daa12..1f15db072 100644 --- a/libbpf-tools/wakeuptime.c +++ b/libbpf-tools/wakeuptime.c @@ -16,8 +16,6 @@ #include "trace_helpers.h" #include -static volatile sig_atomic_t exiting = 0; - struct env { pid_t pid; bool user_threads_only; @@ -153,7 +151,6 @@ static int libbpf_print_fn(enum libbpf_print_level level, const char *format, va static void sig_int(int signo) { - exiting = 1; } static void print_map(struct ksyms *ksyms, struct wakeuptime_bpf *obj)