X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=libust%2Ftracectl.c;h=82f51c1acf776fcee4ee29378dd2f151e784aa14;hb=ce45335c5700c87e9b7a6dd744a6b4b760778c4b;hp=e0b9370963a482a206be9b358d4705ecae727e9c;hpb=69c37f741b8bd8aea95019e1debf5e3bfa9d7fff;p=ust.git diff --git a/libust/tracectl.c b/libust/tracectl.c index e0b9370..82f51c1 100644 --- a/libust/tracectl.c +++ b/libust/tracectl.c @@ -1107,10 +1107,10 @@ void *listener_main(void *p) pthread_cleanup_pop(1); } -volatile sig_atomic_t have_listener = 0; /* These should only be accessed in the parent thread, * not the listener. */ +static volatile sig_atomic_t have_listener = 0; static pthread_t listener_thread; void create_listener(void)