summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorBhasker Hariharan <bhaskerh@google.com>2019-11-06 23:50:54 -0800
committergVisor bot <gvisor-bot@google.com>2019-11-06 23:52:21 -0800
commit2326224a9652201938df2881be055ab352672587 (patch)
tree3d5172f8aadc1f49930d85777e9feb9c127eb951
parent3552691137284525a33d3de7e3c2d170da66c8ac (diff)
Fix yet another data race.
Fixes #1140 PiperOrigin-RevId: 279020846
-rw-r--r--test/syscalls/syscall_test_runner.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/syscalls/syscall_test_runner.go b/test/syscalls/syscall_test_runner.go
index 7186a8ddc..accf46347 100644
--- a/test/syscalls/syscall_test_runner.go
+++ b/test/syscalls/syscall_test_runner.go
@@ -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()