diff options
author | Leah Neukirchen <leah@vuxu.org> | 2022-01-27 14:48:42 +0100 |
---|---|---|
committer | Leah Neukirchen <leah@vuxu.org> | 2022-01-27 14:48:42 +0100 |
commit | bdc22f5a1e5d2eae014319daa07e8efcc61da27e (patch) | |
tree | 8961b8a15155c0e4e3b2f51b735d4605c4856194 | |
parent | 7361db1995bd0f733c4a562857d0d3ae0c4c2b49 (diff) | |
download | hittpd-bdc22f5a1e5d2eae014319daa07e8efcc61da27e.tar.gz hittpd-bdc22f5a1e5d2eae014319daa07e8efcc61da27e.tar.xz hittpd-bdc22f5a1e5d2eae014319daa07e8efcc61da27e.zip |
sig_atomic_t should be used with volatile
-rw-r--r-- | hittpd.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) |