go-sandbox/pkg/forkexec/fork_unix.go
2020-05-13 16:37:59 -04:00

13 lines
286 B
Go

package forkexec
import _ "unsafe" // to use go:linkname
//go:linkname beforeFork syscall.runtime_BeforeFork
func beforeFork()
//go:linkname afterFork syscall.runtime_AfterFork
func afterFork()
//go:linkname afterForkInChild syscall.runtime_AfterForkInChild
func afterForkInChild()