mirror of
https://github.com/RuoJi6/ARTEX.git
synced 2026-12-02 03:51:51 +08:00
24 lines
609 B
Go
24 lines
609 B
Go
//go:build !linux
|
|
|
|
package toolguard
|
|
|
|
import "os/exec"
|
|
|
|
func CgroupV2Available() bool { return false }
|
|
|
|
type cgroupScope struct {
|
|
dir string
|
|
active bool
|
|
}
|
|
|
|
func newCgroupScope(_ int64, _ int) *cgroupScope { return nil }
|
|
func openCgroupScope(_ string) *cgroupScope { return nil }
|
|
func (*cgroupScope) CloseFD() {}
|
|
func (*cgroupScope) Kill() {}
|
|
func (*cgroupScope) OOMKilled() bool { return false }
|
|
func (*cgroupScope) Cleanup() {}
|
|
|
|
func startCommand(cmd *exec.Cmd, _ *cgroupScope) (*exec.Cmd, error) {
|
|
return cmd, cmd.Start()
|
|
}
|