From bdc22f5a1e5d2eae014319daa07e8efcc61da27e Mon Sep 17 00:00:00 2001 From: Leah Neukirchen Date: Thu, 27 Jan 2022 14:48:42 +0100 Subject: sig_atomic_t should be used with volatile --- hittpd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hittpd.c b/hittpd.c index 3bc6bc6..3438102 100644 --- a/hittpd.c +++ b/hittpd.c @@ -113,7 +113,7 @@ struct pollfd client[MAX_CLIENTS]; struct http_parser parsers[MAX_CLIENTS]; struct conn_data datas[MAX_CLIENTS]; -sig_atomic_t stop; +volatile sig_atomic_t stop; static int on_url(http_parser *p, const char *s, size_t l) -- cgit 1.4.1