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 · server/runnerproc_other_test.go

Line attribution on main · 19 line(s)

215f8aeb
Keenan Nemetz
2d ago
1 //go:build !unix
2
3 package server_test
4
5 import "os/exec"
6
7 // ownProcessGroup does nothing where there is no process group to put the runner
8 // in. The helper exists so the integration tests compile everywhere the server
9 // builds.
10 func ownProcessGroup(cmd *exec.Cmd) {}
11
12 // killRunnerTree kills the runner process. Its children may outlive it here; the
13 // tests that need the whole tree are unix-only.
14 func killRunnerTree(cmd *exec.Cmd) error {
15 if cmd.Process == nil {
16 return nil
17 }
18 return cmd.Process.Kill()
19 }