Message396963
| 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. |
|