From 273069fb7d5877e5ee6340d444b4e5f4f78d6b75 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Mon, 28 Apr 2014 17:58:07 +0200 Subject: use sig_atomic_t for running MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/mds-server.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/mds-server.c b/src/mds-server.c index 4cc3e03..34d5419 100644 --- a/src/mds-server.c +++ b/src/mds-server.c @@ -22,6 +22,7 @@ #include #include +#include #include #include #include @@ -50,7 +51,7 @@ static char** argv; * The program run state, 1 when running, * 0 when shutting down */ -static volatile int running = 1; +static volatile sig_atomic_t running = 1; /** * The number of running slaves -- cgit v1.2.3-70-g09d2