The Old New Thing

The case of the redirected standard handles that won't close even though the child process has exited (and a smidge of Microspeak: reduction)

A customer had a supervisor process whose job is to launch two threads. Each thread in turn launches a child process, let's call them A and B, each with redirected standard handles. They spins up separate threads to read from the child processes' stdout in order to avoid deadlocks. What they've found is that even though child ...