Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix process handle leak when launching a job container (#2188)
CreateProcess gives us back a handle to the newly created process. Previously, we ignored this handle, which meant it was leaking every time we created a new job container (or anything else that uses internal/exec in the future). Process handle leaks can be bad as an exited process is left as a "zombie" until all handles to it have closed, continuing to use memory. Fix this by closing the handle from CreateProcess. Signed-off-by: Kevin Parsons <kevpar@microsoft.com> Co-authored-by: Kevin Parsons <kevpar@microsoft.com>
- Loading branch information