From: Pierre-Marc Fournier Date: Mon, 28 Sep 2009 23:46:08 +0000 (-0400) Subject: make have_listener volatile because it is updated from signals X-Git-Tag: v0.1~114 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=7958de40dc52ee7b1bda6b74eec7f3e60fbb6591;p=ust.git make have_listener volatile because it is updated from signals --- diff --git a/libust/tracectl.c b/libust/tracectl.c index 17d28dc..51460d1 100644 --- a/libust/tracectl.c +++ b/libust/tracectl.c @@ -772,7 +772,7 @@ void *listener_main(void *p) } } -int have_listener = 0; +volatile sig_atomic_t have_listener = 0; void create_listener(void) {