Comment by silon42

1 month ago

signalfd / process descriptiors are the Windows style mechanism... what is missing are a few things like 'spawn' that returns a fd directly (eliminating races...)

there is no race from the parent

the pid will not be reused until you either handle sigchld or wait