diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2018-05-14 15:58:40 +0200 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2018-05-14 16:01:58 +0200 |
commit | a62c770a99e830f220314d1bc779e8818d4ecc7f (patch) | |
tree | eebd952c61954cf172bd3f3efe29e404dc3b4697 /main.go | |
parent | 09235d48d8a77b38f5c2834adbcfcb9c68a1491a (diff) |
Ugly hack to suppress warning on backgrounded process
Diffstat (limited to 'main.go')
-rw-r--r-- | main.go | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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") |