Something went wrong. Try again.
This repository has no description
Something went wrong. Try again.
612 B · 22 lines
Go
1234567891011121314151617181920212223//go:build windows
package cmd
import ( "context" "os/exec")
// setNodeProcessGroup is a no-op on Windows: syscall.SysProcAttr has no// Setpgid field there. Isolated ingest — the only thing that detaches — is// gated to Linux anyway (see pkg/media/ingest_isolation_notlinux.go), so// killing the node process is enough.func setNodeProcessGroup(cmd *exec.Cmd) {}
// killNode terminates the forked node. There is nothing detached to sweep.func killNode(ctx context.Context, cmd *exec.Cmd, did string) { if cmd == nil || cmd.Process == nil { return } _ = cmd.Process.Kill() //nolint:errcheck}