Fix yet another data race.

Fixes #1140

PiperOrigin-RevId: 279020846
This commit is contained in:
Bhasker Hariharan 2019-11-06 23:50:54 -08:00 committed by gVisor bot
parent 3552691137
commit 2326224a96
1 changed files with 1 additions and 1 deletions

View File

@ -229,7 +229,7 @@ func runRunsc(tc gtest.TestCase, spec *specs.Spec) error {
dArgs = append(args, "debug",
fmt.Sprintf("--signal=%d", syscall.SIGTERM),
id)
cmd = exec.Command(*runscPath, dArgs...)
cmd := exec.Command(*runscPath, dArgs...)
cmd.Stdout = os.Stdout
cmd.Stderr = os.Stderr
cmd.Run()