Toward race-free process signaling
Toward race-free process signaling
Posted Dec 8, 2018 22:42 UTC (Sat) by smurf (subscriber, #17840)In reply to: Toward race-free process signaling by quotemstr
Parent article: Toward race-free process signaling
Today, the best way to wait on N child processes in that kind of environment is to spawn N threads, each of which calls waitpid(). At least with a clone2-returning-a-process-FD you can reduce that to a single, race-free poll().