summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--hittpd.c2
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)