summaryrefslogtreecommitdiffhomepage
path: root/control/controlknobs/controlknobs.go
diff options
context:
space:
mode:
authorAaron Klotz <aaron@tailscale.com>2024-06-05 14:57:08 -0600
committerAaron Klotz <aaron@tailscale.com>2024-06-11 11:35:26 -0600
commit3511d1f8a23938dea8ddb5183528eb78ec491d21 (patch)
tree8cd9b90e1ae9c4ccf5944255e3c60394c8c2adb4 /control/controlknobs/controlknobs.go
parent4cdc4ed7db6bab75b62d065e915b4fc2a5ce6aa5 (diff)
downloadtailscale-3511d1f8a23938dea8ddb5183528eb78ec491d21.tar.xz
tailscale-3511d1f8a23938dea8ddb5183528eb78ec491d21.zip
cmd/tailscaled, net/dns, wgengine/router: start Windows child processes with DETACHED_PROCESS when I/O is being piped
When we're starting child processes on Windows that are CLI programs that don't need to output to a console, we should pass in DETACHED_PROCESS as a CreationFlag on SysProcAttr. This prevents the OS from even creating a console for the child (and paying the associated time/space penalty for new conhost processes). This is more efficient than letting the OS create the console window and then subsequently trying to hide it, which we were doing at a few callsites. Fixes #12270 Signed-off-by: Aaron Klotz <aaron@tailscale.com>
Diffstat (limited to 'control/controlknobs/controlknobs.go')
0 files changed, 0 insertions, 0 deletions