Message ID | 932ad756-2835-4c10-79c1-e8a6f7b1888f@infradead.org |
---|---|
State | New |
Headers | show |
Series | None | expand |
diff --git a/discover/pb-discover.c b/discover/pb-discover.c index e2b36dd..6f43cc3 100644 --- a/discover/pb-discover.c +++ b/discover/pb-discover.c @@ -113,7 +113,7 @@ static int opts_parse(struct opts *opts, int argc, char *argv[]) return optind != argc; } -static int running; +static volatile sig_atomic_t running; static void sigint_handler(int __attribute__((unused)) signum) {
Variables shared between signal handlers and the main program need to be of type 'volatile sig_atomic_t'. Signed-off-by: Geoff Levand <geoff@infradead.org> --- Here's a V2 that has the re-enable call removed. discover/pb-discover.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)