MCPcopy Create free account
hub / github.com/gogs/gogs / ExecTimeout

Function ExecTimeout

internal/process/manager.go:122–124  ·  view source on GitHub ↗

Exec starts executing a shell command, it tracks corresponding process and timeout.

(timeout time.Duration, desc, cmdName string, args ...string)

Source from the content-addressed store, hash-verified

120
121// Exec starts executing a shell command, it tracks corresponding process and timeout.
122func ExecTimeout(timeout time.Duration, desc, cmdName string, args ...string) (string, string, error) {
123 return ExecDir(timeout, "", desc, cmdName, args...)
124}
125
126// ExecTimeoutEnv is the same as ExecTimeout but allows appending additional
127// environment variables to the child process. Pass nil for env to inherit the

Callers 1

ForkRepositoryFunction · 0.92

Calls 1

ExecDirFunction · 0.85

Tested by

no test coverage detected