Author gregory.p.smith
Recipients christian.heimes, ferringb, georg.brandl, gregory.p.smith, ronaldoussoren, rosslagerwall, vstinner, wmanley
Date 2021-07-05.00:19:38
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1625444378.91.0.0119818515255.issue13788@roundup.psfhosted.org>
In-reply-to
Content
Code needed in a modern patch:

1) Use the system call if compile time configure detected it may be available.  (if we just use syscall() rather than a libc wrapper, a configure check may not be necessary, but various #ifdefs likely are)
2) If (1) produces an error saying it isn't available at runtime (ie: running on a kernel that doesn't support it, regardless of where we were built), fall back to another approach (3)
3) if iterating over /proc/$pid/fd works at runtime, use that; else (4)
4) the existing brute force code.
History
Date User Action Args
2021-07-05 00:19:38gregory.p.smithsetrecipients: + gregory.p.smith, georg.brandl, ronaldoussoren, vstinner, ferringb, christian.heimes, rosslagerwall, wmanley
2021-07-05 00:19:38gregory.p.smithsetmessageid: <1625444378.91.0.0119818515255.issue13788@roundup.psfhosted.org>
2021-07-05 00:19:38gregory.p.smithlinkissue13788 messages
2021-07-05 00:19:38gregory.p.smithcreate