How do I wait until all processes in a job have exited?
A customer was having trouble with job objects, specifically, the customer found that a WaitForSingleObject on a job object was not completing even though all the processes in the job had exited. This is probably the most frustrating part of job objects: A job object does not become signaled when all processes have exited. The s...