ps: possibility to display seat for a process
authorLukas Nykryn <lnykryn@redhat.com>
Mon, 22 Apr 2013 11:16:33 +0000 (13:16 +0200)
committerLukas Nykryn <lnykryn@redhat.com>
Wed, 24 Apr 2013 07:24:44 +0000 (09:24 +0200)
commit7b50c2e9184a64f4b65a3197db24d271b3052b55
tree1ce5d5297e496a1483ddfde63531fd491e2c0650
parent38e8087d5580d870d5960f75670ab5c4f482d366
ps: possibility to display seat for a process

Library systemd-login offers possibility to display
name of seat for a session on multi-seat systems.

This patch adds output option "sd_seat" which will
show name of seat or "-", when name of seat can not
be determined, but "seat0" should always exist.

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