aboutsummaryrefslogtreecommitdiffstats
path: root/erts/epmd/src/epmd_int.h
diff options
context:
space:
mode:
authorMatwey V. Kornilov <[email protected]>2013-12-17 18:16:56 +0400
committerMatwey V. Kornilov <[email protected]>2014-02-19 15:33:36 +0400
commitb7c95eabf6017ddb352fb8ce2b3749af108ebf29 (patch)
treeb74548225eda68455bc5ab0d6d982832cc411dce /erts/epmd/src/epmd_int.h
parent25237481ccccd3ddfa74582dc267632ad618ba30 (diff)
downloadotp-b7c95eabf6017ddb352fb8ce2b3749af108ebf29.tar.gz
otp-b7c95eabf6017ddb352fb8ce2b3749af108ebf29.tar.bz2
otp-b7c95eabf6017ddb352fb8ce2b3749af108ebf29.zip
Add systemd socket activation for epmd.
Check for systemd libraries and headers in confgiure. Add -systemd option enabling waiting for sockets from systemd.
Diffstat (limited to 'erts/epmd/src/epmd_int.h')
-rw-r--r--erts/epmd/src/epmd_int.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/erts/epmd/src/epmd_int.h b/erts/epmd/src/epmd_int.h
index 656dbd1f45..363923eaa9 100644
--- a/erts/epmd/src/epmd_int.h
+++ b/erts/epmd/src/epmd_int.h
@@ -110,6 +110,10 @@
#include <stdarg.h>
+#ifdef HAVE_SYSTEMD_SD_DAEMON_H
+# include <systemd/sd-daemon.h>
+#endif
+
/* ************************************************************************ */
/* Replace some functions by others by making the function name a macro */
@@ -321,6 +325,9 @@ typedef struct {
int listenfd[MAX_LISTEN_SOCKETS];
char *addresses;
char **argv;
+#ifdef HAVE_SYSTEMD_SD_DAEMON_H
+ int is_systemd;
+#endif
} EpmdVars;
void dbg_printf(EpmdVars*,int,const char*,...);