1
0
mirror of https://git.zx2c4.com/wireguard-go synced 2024-11-15 01:05:15 +01:00

Ugly hack to suppress warning on backgrounded process

This commit is contained in:
Jason A. Donenfeld 2018-05-14 15:58:40 +02:00
parent 09235d48d8
commit a62c770a99

View File

@ -30,6 +30,10 @@ func printUsage() {
} }
func warning() { func warning() {
if os.Getenv(ENV_WG_PROCESS_FOREGROUND) == "1" {
return
}
shouldQuit := false shouldQuit := false
fmt.Fprintln(os.Stderr, "WARNING WARNING WARNING WARNING WARNING WARNING WARNING") fmt.Fprintln(os.Stderr, "WARNING WARNING WARNING WARNING WARNING WARNING WARNING")