X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=man%2Fsd_pid_get_session.xml;h=94f533022263c1dd018a37370a2df690fca1cf06;hp=4086c5a826e270c0a028dc0c4037a3b4b7fd2d84;hb=9b1a953e08917030489cd9adb2a17dfd407ce14b;hpb=9847946e12479b27d3ebfd024f00a6ac33ce73d3 diff --git a/man/sd_pid_get_session.xml b/man/sd_pid_get_session.xml index 4086c5a82..94f533022 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. @@ -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 paramater 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