
16 Sep
2019
16 Sep
'19
12:25 a.m.
On Mon, 16 Sep 2019 11:57:30 +1200, Peter Reutemann quoted:
'... a new pidfd_open(2) system call that completes the work done to let users deal with the PID reuse problem ...'
That’s a fun one. There has always been the possibility on Unix/POSIX systems of confusing one process for another, if the first one exits, and then so many process creations happen in the meantime that the entire PID space goes through a full cycle and so the PID for that one gets reused for another one. I thought it would be hard to do, but clearly it’s not impossible. So now Linux has added a set of calls to extend the good old “everything is a file” concept to processes as well.