|
|
Subscribe / Log in / New account

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.


to post comments


Copyright © 2025, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds