Ugly hack to suppress warning on backgrounded process
This commit is contained in:
parent
09235d48d8
commit
a62c770a99
4
main.go
4
main.go
@ -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")
|
||||||
|
Loading…
Reference in New Issue
Block a user