diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2021-05-25 16:14:32 +0200 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2021-06-18 11:28:50 +0200 |
commit | 1636a8c94b345c1af61d6bf786b33722c2ec2b07 (patch) | |
tree | ec6a3020c23bc0f9beb3913512c19acdbc88eb63 /services | |
parent | main: log CLI to stderr/stdout (diff) | |
download | wireguard-windows-1636a8c94b345c1af61d6bf786b33722c2ec2b07.tar.xz wireguard-windows-1636a8c94b345c1af61d6bf786b33722c2ec2b07.zip |
manager: manually use CreateProcess for launching UI process
Go's standard library for this is buggy (PID races, handle races) and
requires passing NUL, which we don't really care about for Windows.
Simplify and speed up process creation by only passing exactly what we
need.
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'services')
-rw-r--r-- | services/errors.go | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/services/errors.go b/services/errors.go index e17cad88..569585a5 100644 --- a/services/errors.go +++ b/services/errors.go @@ -26,7 +26,6 @@ const ( ErrorBindSocketsToDefaultRoutes ErrorSetNetConfig ErrorDetermineExecutablePath - ErrorOpenNULFile ErrorTrackTunnels ErrorEnumerateSessions ErrorDropPrivileges @@ -58,8 +57,6 @@ func (e Error) Error() string { return "Unable to bind sockets to default route" case ErrorSetNetConfig: return "Unable to set interface addresses, routes, dns, and/or interface settings" - case ErrorOpenNULFile: - return "Unable to open NUL file" case ErrorTrackTunnels: return "Unable to track existing tunnels" case ErrorEnumerateSessions: |