MCPcopy Create free account
hub / github.com/LanceLRQ/deer-executor / Default

Function Default

common/sandbox/cmd/execenv/execenv_default.go:21–23  ·  view source on GitHub ↗

Default will return the default environment variables based on the process attributes provided. Defaults to syscall.Environ() on all platforms other than Windows.

(sys *forkexec.SysProcAttr)

Source from the content-addressed store, hash-verified

19// Defaults to syscall.Environ() on all platforms
20// other than Windows.
21func Default(sys *forkexec.SysProcAttr) ([]string, error) {
22 return syscall.Environ(), nil
23}

Callers 1

startProcessFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected