From 1c49207227eecbf2e9b96b04833e5554bf9589b9 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Wed, 20 Aug 2014 20:59:35 +0200 Subject: add sigdanger support MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/libmdsserver/macros.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/libmdsserver') 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 #include +#include /* #include @@ -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 -- cgit v1.2.3-70-g09d2