diff options
| author | Ian Lance Taylor <iant@golang.org> | 2015-10-19 17:01:37 -0700 |
|---|---|---|
| committer | Ian Lance Taylor <iant@golang.org> | 2015-10-20 14:10:24 +0000 |
| commit | 77b1fef27e736764395633413fc13c14d8fed712 (patch) | |
| tree | 50b611d70e399b2788e91e1720141eb51d415588 /src/syscall/exec_bsd.go | |
| parent | 3bc0601742a68d5f73312fe13fe521f8b7fd7e1e (diff) | |
| download | go-77b1fef27e736764395633413fc13c14d8fed712.tar.xz | |
cmd/compile, syscall: use go:norace comment for forkAndExecInChild
Use a go:norace comment rather than having the compiler know the special
name syscall.forkAndExecInChild.
Change-Id: I69bc6aa6fc40feb2148d23f269ff32453696fb28
Reviewed-on: https://go-review.googlesource.com/16097
Reviewed-by: Minux Ma <minux@golang.org>
Diffstat (limited to 'src/syscall/exec_bsd.go')
| -rw-r--r-- | src/syscall/exec_bsd.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/syscall/exec_bsd.go b/src/syscall/exec_bsd.go index 4b5774b492..d182896a53 100644 --- a/src/syscall/exec_bsd.go +++ b/src/syscall/exec_bsd.go @@ -37,6 +37,7 @@ func runtime_AfterFork() // For the same reason compiler does not race instrument it. // The calls to RawSyscall are okay because they are assembly // functions that do not grow the stack. +//go:norace func forkAndExecInChild(argv0 *byte, argv, envv []*byte, chroot, dir *byte, attr *ProcAttr, sys *SysProcAttr, pipe int) (pid int, err Errno) { // Declare all variables at top in case any // declarations require heap allocation (e.g., err1). |
