mirror of https://github.com/go-gost/gost.git
- Replace bare int with atomic.Int32 to fix data race on ret - Replace wg.Add/go/defer wg.Done pattern with wg.Go (Go 1.22+) - Pass context by value instead of pointer - Add ctx.Err() guard to suppress fatal on cancellation errors - Add ProcessState nil check before accessing ExitCode - Move cancel() after wg.Wait() to avoid race where a successful worker's deferred cancel kills siblings and triggers log.Fatal |
||
|---|---|---|
| .. | ||
| gost | ||