Idea: Using pidfd

Craig Small <[email protected]>
Newsgroups gmane.linux.procps.devel
Message-ID <CALy8Cw5Ttj5BAyRsoMcP6abd+VpFyvErBrH4DRoWteH7_eLBJQ@mail.gmail.com>
Hi,
  I have opened an issue around using pidfd which is a new(ish) kernel
enhancement.  Currently, we identify processes by their PID. So we might
scan the /proc directory, do some filtering and then kill/signal processes
afterwards.

The issue is, we might be killing the wrong process if the PIDs wrap-around
too quickly. I'm not saying it is something that must absolutely be done,
but it is definitely worth a look at least.

I'm reluctant to put this into the old structure, which then of course
means the new library should be used if this goes ahead, which then of
course leads to the things needed for a new library.

https://gitlab.com/procps-ng/procps/-/issues/166

 - Craig
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.