MCPcopy Index your code
hub / github.com/FunctionStream/function-stream / RunProcess

Function RunProcess

common/run.go:23–36  ·  view source on GitHub ↗
(startProcess func() (io.Closer, error))

Source from the content-addressed store, hash-verified

21)
22
23func RunProcess(startProcess func() (io.Closer, error)) {
24 process, err := startProcess()
25 if err != nil {
26 slog.Error(
27 "Failed to start the process",
28 slog.Any("error", err),
29 )
30 os.Exit(1)
31 }
32
33 WaitUntilSignal(
34 process,
35 )
36}

Callers 3

execFunction · 0.92
execFunction · 0.92
startServerFunction · 0.92

Calls 2

WaitUntilSignalFunction · 0.85
ErrorMethod · 0.80

Tested by 1

startServerFunction · 0.74