Files
orca/native/windows-security/binding.gyp
T
Neil 9f62a4fa2d fix(windows): start the WSL holder with only a NUL handle to inherit (#35799)
* fix(windows): start the WSL holder with only a NUL handle to inherit

libuv starts every Windows child with bInheritHandles=TRUE and no handle
list, so a detached holder that outlives Orca kept any inheritable handle
Orca had open, such as a launcher's pipe or a DevTools socket. Start it
through CreateProcessW with PROC_THREAD_ATTRIBUTE_HANDLE_LIST naming one NUL
handle for its stdio. The build probes now check the newest export without
calling it, and the lane receipt labels ConPTY's own startup output.

* fix(windows): report isolated holder exits and kills the way libuv does
2026-10-29 02:56:09 -07:00

18 lines
506 B
Python

{
"targets": [
{
"target_name": "orca_windows_security",
"sources": ["src/addon.cc", "src/isolated-spawn.cc"],
"libraries": ["advapi32.lib"],
"include_dirs": ["<!@(node -p \"require('node-addon-api').include\")"],
"defines": ["NAPI_DISABLE_CPP_EXCEPTIONS", "UNICODE", "_UNICODE"],
"msvs_settings": {
"VCCLCompilerTool": { "ExceptionHandling": 0 }
},
"conditions": [
["OS!='win'", { "sources": [] , "type": "none" }]
]
}
]
}