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

Function StartProcess

common/sandbox/cmd/exec.go:104–106  ·  view source on GitHub ↗

StartProcess starts a new process with the program, arguments and attributes specified by name, argv and attr. The argv slice will become os.Args in the new process, so it normally starts with the program name. If the calling goroutine has locked the operating system thread with runtime.LockOSThrea

(name string, argv []string, attr *ProcAttr)

Source from the content-addressed store, hash-verified

102//
103// If there is an error, it will be of type *PathError.
104func StartProcess(name string, argv []string, attr *ProcAttr) (*Process, error) {
105 return startProcess(name, argv, attr)
106}
107
108// Release releases any resources associated with the Process p,
109// rendering it unusable in the future.

Callers 2

runAsyncFunction · 0.92
runInteractiveAsyncFunction · 0.92

Calls 1

startProcessFunction · 0.85

Tested by

no test coverage detected