Commit 976716e
committed
Fix process handle leak when launching a job container
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 <[email protected]>1 parent b0d91fb commit 976716e
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
209 | 209 | | |
210 | 210 | | |
211 | 211 | | |
212 | | - | |
213 | 212 | | |
| 213 | + | |
214 | 214 | | |
215 | 215 | | |
216 | 216 | | |
| |||
0 commit comments