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 authored and Craig Small committed 2022-04-01 06:24:38 +00:00
1 parent e914f4b068
commit d014c5c9f2
3 files changed
+21 -1

No files matched your search

+4 -1
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;