Race-free process creation in the GNU C Library
Race-free process creation in the GNU C Library
Posted Jun 23, 2024 19:51 UTC (Sun) by heiner (guest, #158880)In reply to: Race-free process creation in the GNU C Library by the8472
Parent article: Race-free process creation in the GNU C Library
This is correct, if cumbersome, but only necessary in the parent if you cannot rule out other threads in the parent process doing a generic wait(). PIDs are not reused until they are reaped.
I guess in a library context one cannot actually rule that out.