Sign in

Search issue titles and bodies, change requests and comments. Private repositories you cannot read are not included.

vole
Site
Clone

Read only, no credentials:

https://rodent.software/vole.git

Write over SSH with a registered key:

git clone ssh://git@rodent.software/vole.git

Self-hosted forge that lives in your Git repo.

Blame · ci/agent/proctree_windows.go

Line attribution on main · 21 line(s)

215f8aeb
Keenan Nemetz
2d ago
1 //go:build windows
2
3 package agent
4
5 import "os/exec"
6
7 // newProcessGroup does nothing: Windows has no process group a runner can signal
8 // the way unix does, so there is nothing to set at start.
9 func newProcessGroup(cmd *exec.Cmd) {}
10
11 // killProcessGroup ends the command the runner started. A step's own children can
12 // outlive it here — reaching them needs a Job Object, which is not implemented
13 // yet — so the bound this file promises is weaker on Windows than on unix. The
14 // gap is documented rather than papered over with a kill that does not reach the
15 // tree.
16 func killProcessGroup(cmd *exec.Cmd) error {
17 if cmd.Process == nil {
18 return nil
19 }
20 return cmd.Process.Kill()
21 }