summaryrefslogtreecommitdiff
path: root/src/proctable.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/proctable.cpp')
-rw-r--r--src/proctable.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/proctable.cpp b/src/proctable.cpp
index 25b1f36..20f0db5 100644
--- a/src/proctable.cpp
+++ b/src/proctable.cpp
@@ -45,7 +45,6 @@
#include <list>
#ifdef HAVE_SYSTEMD
-#include <systemd/sd-daemon.h>
#include <systemd/sd-login.h>
#endif
@@ -488,7 +487,7 @@ proctable_new (ProcData * const procdata)
}
#ifdef HAVE_SYSTEMD
- if (sd_booted() <= 0)
+ if (!LOGIND_RUNNING())
#endif
{
GtkTreeViewColumn *column;
@@ -756,7 +755,7 @@ get_process_systemd_info(ProcInfo *info)
#ifdef HAVE_SYSTEMD
uid_t uid;
- if (sd_booted() <= 0)
+ if (!LOGIND_RUNNING())
return;
free(info->unit);