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() {
if os.Getenv(ENV_WG_PROCESS_FOREGROUND) == "1" {
return
}
shouldQuit := false
fmt.Fprintln(os.Stderr, "WARNING WARNING WARNING WARNING WARNING WARNING WARNING")