aboutsummaryrefslogtreecommitdiffstats
path: root/src/mds-registry/slave.h
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2014-09-08 15:10:44 +0200
committerMattias Andrée <maandree@operamail.com>2014-09-08 15:10:44 +0200
commit5b8a66fc23ad54a680b8bd9a0bb673ab048c365d (patch)
treec6b15675089d850e27fb66189a7cc4a4b5abcc08 /src/mds-registry/slave.h
parentmds-registry: take care of danger (diff)
downloadmds-5b8a66fc23ad54a680b8bd9a0bb673ab048c365d.tar.gz
mds-5b8a66fc23ad54a680b8bd9a0bb673ab048c365d.tar.bz2
mds-5b8a66fc23ad54a680b8bd9a0bb673ab048c365d.tar.xz
never volatile int, always volatile sig_atomic_t
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to '')
-rw-r--r--src/mds-registry/slave.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mds-registry/slave.h b/src/mds-registry/slave.h
index 9f08f07..cb30b94 100644
--- a/src/mds-registry/slave.h
+++ b/src/mds-registry/slave.h
@@ -25,6 +25,7 @@
#include <stdint.h>
#include <pthread.h>
#include <time.h>
+#include <signal.h>
@@ -63,7 +64,7 @@ typedef struct slave
/**
* Whether the client has been closed
*/
- volatile int closed;
+ volatile sig_atomic_t closed;
/**
* The slave thread