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.

Code

527 commit(s) on main

Put job execution behind an interface Keenan Nemetz · 2h ago de3eec16
history blame raw 687 B
1//go:build windows
2
3package agent
4
5import "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.
9func 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.
16func killProcessGroup(cmd *exec.Cmd) error {
17 if cmd.Process == nil {
18 return nil
19 }
20 return cmd.Process.Kill()
21}
22