From 94fb446e55babb713fb24850455627acf30d999b Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Wed, 4 Jan 2012 15:35:30 +0100 Subject: journald: store _SYSTEMD_UNIT= instead of _SYSTEMD_SERVICE= field, since processes might also be related to mount, swap or socket units, not just services --- man/sd_pid_get_session.xml | 27 ++++++++++++++------------- 1 file changed, 14 insertions(+), 13 deletions(-) (limited to 'man/sd_pid_get_session.xml') diff --git a/man/sd_pid_get_session.xml b/man/sd_pid_get_session.xml index 4086c5a826..bd95804628 100644 --- a/man/sd_pid_get_session.xml +++ b/man/sd_pid_get_session.xml @@ -44,7 +44,7 @@ sd_pid_get_session - sd_pid_get_service + sd_pid_get_unit sd_pid_get_owner_uid Determine session, service or owner of a session of a specific PID @@ -60,9 +60,9 @@ - int sd_pid_get_service + int sd_pid_get_unit pid_t pid - char** service + char** unit @@ -90,15 +90,16 @@ free3 call after use. - sd_pid_get_service() may be - used to determine the system service identifier of a - process identified by the specified process - identifier. The service name is a short string, - suitable for usage in file system paths. Note that not - all processes are part of a service (e.g. user - processes, or kernel threads). For processes not being - part of a system service this function will fail. The - returned string needs to be freed with the libc + sd_pid_get_unit() may be + used to determine the systemd unit (i.e. system + service) identifier of a process identified by the + specified process identifier. The unit name is a short + string, suitable for usage in file system paths. Note + that not all processes are part of a unit/service + (e.g. user processes, or kernel threads). For + processes not being part of a systemd unit/system + service this function will fail. The returned string + needs to be freed with the libc free3 call after use. @@ -126,7 +127,7 @@ Notes The sd_pid_get_session(), - sd_pid_get_service(), and + sd_pid_get_pid(), and sd_pid_get_owner_uid() interfaces are available as shared library, which can be compiled and linked to with the -- cgit v1.2.3-54-g00ecf