Closed xilun closed 8 years ago
for a more proper suspend and termination support
See Job Objects and Job Object Functions on MSDN.
Note: process should be created suspended, then put in the job, then resumed, otherwise there is a risk of a race where newly created processes could spawn others before being put in the job...
done for termination, in progress (already works well in most cases) for suspend/resume
ok with d55f15f
for a more proper suspend and termination support
See Job Objects and Job Object Functions on MSDN.
Note: process should be created suspended, then put in the job, then resumed, otherwise there is a risk of a race where newly created processes could spawn others before being put in the job...