Add support for elogind

A session manager similar to logind from systemd.
See https://github.com/elogind/elogind

Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>
This commit is contained in:
Sven Eden
2017-05-30 16:33:28 +02:00
committed by Craig Small
parent e914f4b068
commit d014c5c9f2
3 changed files with 21 additions and 1 deletions

View File

@ -35,6 +35,9 @@
#ifdef WITH_SYSTEMD
#include <systemd/sd-login.h>
#endif
#ifdef WITH_ELOGIND
#include <elogind/sd-login.h>
#endif
#include "devname.h"
#include "escape.h"
@ -495,7 +498,7 @@ static inline void oomadj2proc(const char *S, proc_t *restrict P)
///////////////////////////////////////////////////////////////////////
static int sd2proc (proc_t *restrict p) {
#ifdef WITH_SYSTEMD
#if defined(WITH_SYSTEMD) || defined(WITH_ELOGIND)
char buf[64];
uid_t uid;