]> git.ipfire.org Git - thirdparty/util-linux.git/commit
lsfd: use path_cxt to read process
authorKarel Zak <kzak@redhat.com>
Wed, 8 Sep 2021 08:28:14 +0000 (10:28 +0200)
committerKarel Zak <kzak@redhat.com>
Wed, 6 Oct 2021 09:01:54 +0000 (11:01 +0200)
commitcb6f0c4a1516ff0f5043fdd58164a3df9b707c7c
tree5836a8fa92ad05c8d571fce0ae324e60dc7a1b8b
parent50082db43ab1337e98c5b4ba04a15e4d44e2b418
lsfd: use path_cxt to read process

* path_cxt is based on openat-like functions and lib/path.c provides
  large number of utils to use it
* one handler is re-used for all processes to reduce memory allocation
* list of process is moved to lsfd_control to make it available everywhere
* read tasks when we read process, no later
* lists initialization is done when object (process) is allocated

Signed-off-by: Karel Zak <kzak@redhat.com>
misc-utils/lsfd.c