]> Cypherpunks repositories - gostls13.git/commit
syscall: separate ProcSysAttr and forkAndExecInChild for FreeBSD
authorTobias Klauser <tklauser@distanz.ch>
Wed, 13 Oct 2021 13:42:31 +0000 (15:42 +0200)
committerTobias Klauser <tobias.klauser@gmail.com>
Thu, 14 Oct 2021 07:18:59 +0000 (07:18 +0000)
commit1349c6eb1e3faf8b83db9a1ea30764d56b40c7dc
treeb1789548e0e99ed31b549334ebbeae096055b40a
parent9e4dc6f37f75840d1193accae697a0e9283f5384
syscall: separate ProcSysAttr and forkAndExecInChild for FreeBSD

To allow adding fields to ProcSysAttr which are supported on FreeBSD but
not on other BSDs.

For now exec_freebsd.go is an exact copy of exec_bsd.go with adjusted
build tags and copyright year.

For #46258
For #46259

Change-Id: I7667a0cdf1ca86ef64a147b77c06db70c5f8eb90
Reviewed-on: https://go-review.googlesource.com/c/go/+/355569
Trust: Tobias Klauser <tobias.klauser@gmail.com>
Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/syscall/exec_bsd.go
src/syscall/exec_freebsd.go [new file with mode: 0644]