Nick Khyl ba058bce86
cmd/tailscaled: defer COM initialization and enabling GP lock restrictions on Windows until main runs
In this PR, we use a `tailscaledInit lazy.DeferredInit` to defer COM initialization and GP lock restriction
until the main function is called and determines that the current process is an actual tailscaled process,
rather than a CLI symlink, `tailscaled --version`, or another subcommand that doesn't require full initialization.

Updates #cleanup
Updates #14416

Signed-off-by: Nick Khyl <nickk@tailscale.com>
2025-01-23 15:17:48 -06:00
..
2025-01-07 13:05:37 -08:00
2023-08-03 13:00:45 -07:00
2024-09-17 09:48:48 -07:00
2024-04-16 15:32:38 -07:00
2024-06-05 15:24:04 -07:00
2024-09-29 16:15:22 -07:00