X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=man%2Fsd_pid_get_session.xml;h=9517795f78eb3c11fea00aaf1b84e44b315f3566;hp=4086c5a826e270c0a028dc0c4037a3b4b7fd2d84;hb=64abe9aa3f7dc7d755a4d3d1783fe3f0285edaea;hpb=9847946e12479b27d3ebfd024f00a6ac33ce73d3 diff --git a/man/sd_pid_get_session.xml b/man/sd_pid_get_session.xml index 4086c5a82..9517795f7 100644 --- a/man/sd_pid_get_session.xml +++ b/man/sd_pid_get_session.xml @@ -8,16 +8,16 @@ Copyright 2010 Lennart Poettering systemd is free software; you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2 of the License, or + under the terms of the GNU Lesser General Public License as published by + the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. systemd is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - General Public License for more details. + Lesser General Public License for more details. - You should have received a copy of the GNU General Public License + You should have received a copy of the GNU Lesser General Public License along with systemd; If not, see . --> @@ -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. @@ -112,6 +113,10 @@ fail. For processes not being part of a login session and not being a shared process of a user this function will fail. + + If the pid parameter of any + of these functions is passed as 0 the operation is + executed for the calling process. @@ -126,7 +131,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 @@ -146,7 +151,7 @@ systemd1, - sd-login7, + sd-login3, sd_session_is_active3, getsid2