diff options
author | Mattias Andrée <maandree@operamail.com> | 2014-04-28 17:58:07 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2014-04-28 17:58:07 +0200 |
commit | 273069fb7d5877e5ee6340d444b4e5f4f78d6b75 (patch) | |
tree | 051b964a7ea8788a48db7109decbc0ad4ceead13 /src | |
parent | add todo (diff) | |
download | mds-273069fb7d5877e5ee6340d444b4e5f4f78d6b75.tar.gz mds-273069fb7d5877e5ee6340d444b4e5f4f78d6b75.tar.bz2 mds-273069fb7d5877e5ee6340d444b4e5f4f78d6b75.tar.xz |
use sig_atomic_t for running
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to '')
-rw-r--r-- | src/mds-server.c | 3 |
1 files changed, 2 insertions, 1 deletions
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 <libmdsserver/fd-table.h> #include <libmdsserver/mds-message.h> +#include <signal.h> #include <stdio.h> #include <string.h> #include <stdlib.h> @@ -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 |