> I'm not sure I understand what you are asking. Are you asking how to > test that the standard handles aren't inherited by subprocesses? I can check that the SetHandleInformation is returning TRUE so the handles shouldn't be inherited already. However, is there any Emacs feature that will be broken if the handles are inherited? I would like to test that to make sure the E2E flow is still working. > Btw, I still don't think I've seen the patch you are want to test, so > I don't even know if it's clean and correct by itself. The patch is here https://raw.githubusercontent.com/kiennq/emacs-build/main/patches/0004-init_ntproc-Use-SetHandleInformation-to-set-NOINHERI.patch It's also attached in the mail. --- Kien