]> granicus.if.org Git - procps-ng/commit
ps: possibility to display login session for a process
authorLukas Nykryn <lnykryn@redhat.com>
Tue, 16 Apr 2013 13:58:32 +0000 (15:58 +0200)
committerLukas Nykryn <lnykryn@redhat.com>
Wed, 24 Apr 2013 07:24:44 +0000 (09:24 +0200)
commit716d96b8eb00f0f43a01d1707cbc1d611c10454b
tree9332164bed5c1d8b12a4ec39defad5296dac44c1
parent7ab5d33c5c764d0cdc443298aee5f88d450c6e47
ps: possibility to display login session for a process

Library systemd-login offers possibility to display name
of login session for specific pid.
Note that not all processes are part of a login session
(e.g. system service processes, user processes that are shared
between multiple sessions of the same user, or kernel threads).

This patch adds output option "sd_session" which will
show name of session or "-", when process does not belong
to any session.

To maintain compatibility with non-systemd systems,
procps must be configured with --with-systemd option
to enable this option.
ps/output.c
ps/ps.1