make have_listener volatile because it is updated from signals
authorPierre-Marc Fournier <pierre-marc.fournier@polymtl.ca>
Mon, 28 Sep 2009 23:46:08 +0000 (19:46 -0400)
committerPierre-Marc Fournier <pierre-marc.fournier@polymtl.ca>
Mon, 28 Sep 2009 23:46:08 +0000 (19:46 -0400)
libust/tracectl.c

index 17d28dca61394f744077fea45f5fea1bf5d17e43..51460d185e6c8378a87dc7c236df7ea97698ea12 100644 (file)
@@ -772,7 +772,7 @@ void *listener_main(void *p)
        }
 }
 
-int have_listener = 0;
+volatile sig_atomic_t have_listener = 0;
 
 void create_listener(void)
 {
This page took 0.042997 seconds and 4 git commands to generate.