Skip to content
Unverified Commit 93746a06 authored by Andre Heinecke's avatar Andre Heinecke
Browse files

Reduce inherited handles for Windows child proc

When starting the WindowsProcessDevice we would inherit
all handles marked as inhertiable to the child process.
This somehow leads to a problem on Network drives where
an open File handle to \device\afd is inherited. This
open File handle appears to cause Windows to keep the
stdout Handle of the child process open as it does not
fully terminate the child. This then causes a hang
in the ReadFile call.

This way we only inherit the three handles we want to
inherit. Which is much cleaner as it filters out a lot
of other handles to threads etc. which we do not want
to inherit.

GnuPG-Bug-Id: T6139
parent 6a55c1a2
Pipeline #220165 passed with stage
in 3 minutes and 7 seconds
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment