build differently for openbsd because we can't cross compile the process library

pull/8101/head
Megan Marsh 7 years ago
parent e59c122dff
commit bf4394ee95

@ -0,0 +1,14 @@
// +build !openbsd
package main
import (
"github.com/shirou/gopsutil/process"
)
func checkProcess(currentPID int) (bool, error) {
myProc, _ := process.NewProcess(int32(currentPID))
bg, _ := myProc.Background()
return bg, nil
}

@ -0,0 +1,10 @@
package main
import (
"fmt"
)
func openTTY() (packer.TTY, error) {
return false, fmt.Errorf("cannot determine if process is backgrounded in " +
"openbsd")
}
Loading…
Cancel
Save