A new filesystem for pidfds
A new filesystem for pidfds
Posted Mar 14, 2024 4:29 UTC (Thu) by ibukanov (subscriber, #3942)In reply to: A new filesystem for pidfds by fraetor
Parent article: A new filesystem for pidfds
A pid can only be recycled after the parent process called waitpid or related methods. Thus in a properly written application there should be no race when using the pid.
However that does complicate the code especially when one writes a library that wants to start external process as arranging for waitpid call becomes problematic.
