chiark / gitweb /
journald: store _SYSTEMD_UNIT= instead of _SYSTEMD_SERVICE= field, since processes...
[elogind.git] / src / login / sd-login.c
index 1d4368187f5f430de16a692f69279714aeccef84..8893b1de80cfa4449850a9a08b7e424c6d334d2e 100644 (file)
@@ -121,11 +121,11 @@ _public_ int sd_pid_get_session(pid_t pid, char **session) {
         return 0;
 }
 
-_public_ int sd_pid_get_service(pid_t pid, char **service) {
+_public_ int sd_pid_get_unit(pid_t pid, char **unit) {
         int r;
         char *cgroup, *p;
 
-        if (!service)
+        if (!unit)
                 return -EINVAL;
 
         r = pid_get_cgroup(pid, NULL, &cgroup);
@@ -144,7 +144,7 @@ _public_ int sd_pid_get_service(pid_t pid, char **service) {
         if (!p)
                 return -ENOMEM;
 
-        *service = p;
+        *unit = p;
         return 0;
 }
 
@@ -574,7 +574,7 @@ _public_ int sd_seat_can_multi_session(const char *seat) {
                 return -ENOMEM;
 
         r = parse_env_file(p, NEWLINE,
-                           "IS_VTCONSOLE", &s,
+                           "CAN_MULTI_SESSION", &s,
                            NULL);
         free(p);