aboutsummaryrefslogtreecommitdiffstats
path: root/src/libmdsserver
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2014-08-20 20:59:35 +0200
committerMattias Andrée <maandree@operamail.com>2014-08-20 20:59:35 +0200
commit1c49207227eecbf2e9b96b04833e5554bf9589b9 (patch)
treedac7042795c7574d3967e55c8ff719b2a5572125 /src/libmdsserver
parenttypo (diff)
downloadmds-1c49207227eecbf2e9b96b04833e5554bf9589b9.tar.gz
mds-1c49207227eecbf2e9b96b04833e5554bf9589b9.tar.bz2
mds-1c49207227eecbf2e9b96b04833e5554bf9589b9.tar.xz
add sigdanger support
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to '')
-rw-r--r--src/libmdsserver/macros.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/libmdsserver/macros.h b/src/libmdsserver/macros.h
index 2d3f7a3..215c51a 100644
--- a/src/libmdsserver/macros.h
+++ b/src/libmdsserver/macros.h
@@ -24,6 +24,7 @@
#include <stdio.h>
#include <errno.h>
+#include <signal.h>
/*
#include <unistd.h>
@@ -363,5 +364,14 @@
#define exit_if(CONDITION, INSTRUCTIONS) if (CONDITION) { INSTRUCTIONS return 1; }
+/**
+ * The system is running out of memory.
+ * Quick, free up all your unused memory or kill yourself!
+ */
+#ifndef SIGDANGER
+# define SIGDANGER SIGRTMAX
+#endif
+
+
#endif