aboutsummaryrefslogtreecommitdiffstats
path: root/src/afb-debug.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/afb-debug.c')
-rw-r--r--src/afb-debug.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/afb-debug.c b/src/afb-debug.c
index e7a5c643..db403a6b 100644
--- a/src/afb-debug.c
+++ b/src/afb-debug.c
@@ -30,6 +30,9 @@
#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>
+#if !defined(NO_CALL_PERSONALITY)
+#include <sys/personality.h>
+#endif
#include "verbose.h"
@@ -98,6 +101,9 @@ void afb_debug(const char *key)
indicate(NULL);
sigprocmask(SIG_SETMASK, &oss, NULL);
NOTICE("DEBUG WAIT after %s", key);
+#if !defined(NO_CALL_PERSONALITY)
+ personality((unsigned long)-1L);
+#endif
}
if (has_key(key, secure_getenv(key_env_break))) {
NOTICE("DEBUG BREAK before %s", key);