]> git.ipfire.org Git - thirdparty/util-linux.git/commit
lsfd: Refactor the pidfd logic into lsfd-pidfd.c
authorXi Ruoyao <xry111@xry111.site>
Wed, 3 Apr 2024 07:29:34 +0000 (15:29 +0800)
committerKarel Zak <kzak@redhat.com>
Wed, 3 Jul 2024 07:07:57 +0000 (09:07 +0200)
commit2289f4e90f49a83e24a21fa887893438834d707f
tree85c7269fdf6153d6e46f3f8f19a61a73061b4c4c
parente1606a25b8b5dd643099ac7835f744202e688a69
lsfd: Refactor the pidfd logic into lsfd-pidfd.c

We'll reuse these logic for pidfd support on Linux >= 6.9.  This should
be a no-functional change.

Besides moving the code, this change also renames anon_pidfd_data to
pidfd_data, and removes a redundant nullity check for free (because
free(NULL) will just do nothing per the C standard).

Signed-off-by: Xi Ruoyao <xry111@xry111.site>
(cherry picked from commit bf6645dc1edef09ad378cc5b9eb2c93861408735)
misc-utils/Makemodule.am
misc-utils/lsfd-pidfd.c [new file with mode: 0644]
misc-utils/lsfd-pidfd.h [new file with mode: 0644]
misc-utils/lsfd-unkn.c
misc-utils/meson.build