MCPcopy Create free account
hub / github.com/GongShichen/LuminaCode / TerminateProcessTree

Function TerminateProcessTree

tools/bash/background.go:370–386  ·  view source on GitHub ↗
(cmd *exec.Cmd)

Source from the content-addressed store, hash-verified

368func AutoBackgroundIfBlocking(startTime time.Time, manager *BackgroundManager, command, description, cmd string) (*BackgroundTask, error) {
369 if time.Since(startTime) >= time.Duration(assistantBlockingBudgetMs)*time.Millisecond && manager.CanAccept() {
370 return manager.StartBackgroundWithOptionalTimeout(command, description, cmd, nil)
371 }
372 return nil, nil
373}
374
375func shellCommand(ctx context.Context, command string) *exec.Cmd {
376 argv := ShellArgv(command, "")
377 return exec.CommandContext(ctx, argv[0], argv[1:]...)
378}
379
380func prepareProcessGroup(cmd *exec.Cmd) {
381 prepareProcessGroupForPlatform(cmd)
382}
383
384func PrepareProcessGroup(cmd *exec.Cmd) {
385 prepareProcessGroup(cmd)
386}
387
388func TerminateProcessTree(cmd *exec.Cmd) {
389 terminateProcessTreeForPlatform(cmd)

Callers 1

terminateProcessTreeFunction · 0.85

Calls 1

RunMethod · 0.65

Tested by

no test coverage detected