That CloseHandle() inside detach function is only about releasing the reference AFAICT, not really about "making the process independent from the parent one". [CREATE_NEW_PROCESS_GROUP](https://learn.microsoft.com/en-us/windows/win32/procthread/process-creation-flags) might work at the creation time.
Bug 1791675 Comment 3 Edit History
Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.
That CloseHandle() inside detach function is only about releasing the reference AFAICT, not really about "making the process independent from the parent one". [CREATE_NEW_PROCESS_GROUP](https://learn.microsoft.com/en-us/windows/win32/procthread/process-creation-flags) might work at the creation time. Sounds like Taskcluster had a similar issue? https://searchfox.org/mozilla-central/rev/b1e5f2c7c96be36974262551978d54f457db2cae/third_party/python/taskcluster_taskgraph/taskgraph/run-task/run-task#987
That CloseHandle() inside detach function is only about releasing the reference AFAICT, not really about "making the process independent from the parent one". [CREATE_NEW_PROCESS_GROUP](https://learn.microsoft.com/en-us/windows/win32/procthread/process-creation-flags) might work at the creation time. Sounds like Taskcluster had a similar issue? https://searchfox.org/mozilla-central/rev/b1e5f2c7c96be36974262551978d54f457db2cae/taskcluster/scripts/run-task#707