Rename from posix to unix to parallel x/sys/unix

Use the `_unix` file suffix to denote *NIX-like semantics in order to parallel the designation given by the package `golang.org/x/sys/unix`.
This commit is contained in:
Sean Chittenden 2016-05-07 10:23:48 -07:00
parent 831909dcce
commit cfd76aaf15
8 changed files with 0 additions and 16 deletions

View file

@ -1,16 +0,0 @@
package driver
import (
"os/exec"
"syscall"
)
// isolateCommand sets the setsid flag in exec.Cmd to true so that the process
// becomes the process leader in a new session and doesn't receive signals that
// are sent to the parent process.
func isolateCommand(cmd *exec.Cmd) {
if cmd.SysProcAttr == nil {
cmd.SysProcAttr = &syscall.SysProcAttr{}
}
cmd.SysProcAttr.Setsid = true
}