]> git.ipfire.org Git - thirdparty/util-linux.git/commit
lsfd: show pid, comm, and nspid of pidfd in PIDFD.{PID,COMM,NSPID} columns
authorMasatake YAMATO <yamato@redhat.com>
Fri, 9 Sep 2022 17:03:45 +0000 (02:03 +0900)
committerMasatake YAMATO <yamato@redhat.com>
Mon, 12 Sep 2022 12:48:53 +0000 (21:48 +0900)
commit553a68178e6d2048fe7807a01a1876e3385ab261
tree97279b928f274b2d3bb1eca9bee7484ad27e6a72
parent546b26b1017f2b68ce2ef03106a74b0047af7ab6
lsfd: show pid, comm, and nspid of pidfd in PIDFD.{PID,COMM,NSPID} columns

The values shown in the new columns are already shown in NAME column.
Showing these values together in the NAME column helps users
understand the pidfds opened quickly. However, the showing them
together is not suitable for machine processing. The newly introduced
columns are for machine processing.

Below an example output:

    $ ./lsfd -o COMMAND,TYPE,PIDFD.COMM,PIDFD.PID -Q '(TYPE == "pidfd")'
    COMMAND          TYPE PIDFD.COMM  PIDFD.PID
    dbus-broker-lau pidfd dbus-broker      4661
    dbus-broker-lau pidfd dbus-broker      4924

Signed-off-by: Masatake YAMATO <yamato@redhat.com>
misc-utils/lsfd-unkn.c
misc-utils/lsfd.c
misc-utils/lsfd.h
tests/expected/lsfd/mkfds-pidfd
tests/ts/lsfd/mkfds-pidfd