]> granicus.if.org Git - procps-ng/commit
ps: possibility to display uid of session owner for a process
authorLukas Nykryn <lnykryn@redhat.com>
Wed, 17 Apr 2013 08:32:50 +0000 (10:32 +0200)
committerLukas Nykryn <lnykryn@redhat.com>
Wed, 24 Apr 2013 07:24:44 +0000 (09:24 +0200)
commit785776c10d38b3c6773b15ac7017327c4fa3a01b
tree9d0293ad53638ad11561a4cbd620d8eb622de9a7
parent716d96b8eb00f0f43a01d1707cbc1d611c10454b
ps: possibility to display uid of session owner for a process

Library systemd-login offers possibility to display the Unix
user identifier of the owner of the session of a process.
This information will also be displayed for user processes which
are shared between multiple login sessions of the same user,
where sd_session will be blank.

This patch adds output option "sd_ouid" which will show
user UID or "-", when there is no owner for a process.

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