aboutsummaryrefslogtreecommitdiffstats
path: root/src/mds-clipboard.c
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2014-09-08 14:27:18 +0200
committerMattias Andrée <maandree@operamail.com>2014-09-08 14:27:18 +0200
commit470c46ebc37ccf63f7301e6004c4c05c3b81f2a3 (patch)
tree13497b6d5c30f535f4dcd99c42c896c229662584 /src/mds-clipboard.c
parenttake care of some danger (diff)
downloadmds-470c46ebc37ccf63f7301e6004c4c05c3b81f2a3.tar.gz
mds-470c46ebc37ccf63f7301e6004c4c05c3b81f2a3.tar.bz2
mds-470c46ebc37ccf63f7301e6004c4c05c3b81f2a3.tar.xz
derp, danger is volatile and atomic
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'src/mds-clipboard.c')
-rw-r--r--src/mds-clipboard.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mds-clipboard.c b/src/mds-clipboard.c
index a726c52..8cd9bea 100644
--- a/src/mds-clipboard.c
+++ b/src/mds-clipboard.c
@@ -85,7 +85,7 @@ static clipitem_t* clipboard[CLIPBOARD_LEVELS];
/**
* Whether the server should free memory as soon as possible
*/
-static int danger = 0;
+static volatile sig_atomic_t danger = 0;