Code Review
/
src
/
app-framework-binder.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
debugging: add calls to 'personality'
[src/app-framework-binder.git]
/
src
/
main.c
diff --git
a/src/main.c
b/src/main.c
index
a989a70
..
77392f8
100644
(file)
--- a/
src/main.c
+++ b/
src/main.c
@@
-29,6
+29,10
@@
#include <sys/stat.h>
#include <sys/wait.h>
#include <sys/stat.h>
#include <sys/wait.h>
+#if !defined(NO_CALL_PERSONALITY)
+#include <sys/personality.h>
+#endif
+
#include <json-c/json.h>
#include <systemd/sd-daemon.h>
#include <json-c/json.h>
#include <systemd/sd-daemon.h>
@@
-598,6
+602,9
@@
static void start(int signum)
/* start the services */
afb_debug("start-start");
/* start the services */
afb_debug("start-start");
+#if !defined(NO_CALL_PERSONALITY)
+ personality((unsigned long)-1L);
+#endif
if (afb_apiset_start_all_services(main_apiset, 1) < 0)
goto error;
if (afb_apiset_start_all_services(main_apiset, 1) < 0)
goto error;