Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
knome
on Oct 25, 2023
|
parent
|
context
|
favorite
| on:
Not knowing the /proc file system
>Also there's no guarantee whatsoever that /proc/123 is going to refer to a specific process
does using openat solve that or is there some kind of directory inode reuse occurring?
lathiat
on Oct 25, 2023
|
next
[–]
See also, pidfd, for similar reasons:
https://lwn.net/Articles/794707/
iforgotpassword
on Oct 25, 2023
|
prev
[–]
No, that's usually the way to go, although I couldn't guarantee you that inodes could theoretically get reused; I never checked. I would assume you don't reuse an inode that's still in use...
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
does using openat solve that or is there some kind of directory inode reuse occurring?