github.com/criyle/go-sandbox@v0.10.3/pkg/forkexec/fork_unix.go (about) 1 package forkexec 2 3 import _ "unsafe" // to use go:linkname 4 5 //go:linkname beforeFork syscall.runtime_BeforeFork 6 func beforeFork() 7 8 //go:linkname afterFork syscall.runtime_AfterFork 9 func afterFork() 10 11 //go:linkname afterForkInChild syscall.runtime_AfterForkInChild 12 func afterForkInChild()