diff options
author | Lennart Poettering <lennart@poettering.net> | 2012-01-04 15:35:30 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2012-01-04 15:35:30 +0100 |
commit | 94fb446e55babb713fb24850455627acf30d999b (patch) | |
tree | b69d30f7e36ce6b288fb3df5f2d699c83a1f835e /src/login/sd-login.h | |
parent | e91af489a25e8bb65016a63f533ae28a505119ef (diff) |
journald: store _SYSTEMD_UNIT= instead of _SYSTEMD_SERVICE= field, since processes might also be related to mount, swap or socket units, not just services
Diffstat (limited to 'src/login/sd-login.h')
-rw-r--r-- | src/login/sd-login.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/login/sd-login.h b/src/login/sd-login.h index 1d8a55e906..00de6716b0 100644 --- a/src/login/sd-login.h +++ b/src/login/sd-login.h @@ -53,9 +53,9 @@ int sd_pid_get_session(pid_t pid, char **session); * return an error for system processes. */ int sd_pid_get_owner_uid(pid_t pid, uid_t *uid); -/* Get service name from PID. This will return an error for - * non-service processes. */ -int sd_pid_get_service(pid_t, char **service); +/* Get systemd unit (i.e. service) name from PID. This will return an + * error for non-service processes. */ +int sd_pid_get_unit(pid_t, char **unit); /* Get state from uid. Possible states: offline, lingering, online, active */ int sd_uid_get_state(uid_t uid, char**state); |