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 514 B
1//go:build !unix
2
3package server_test
4
5import "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.
10func 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.
14func killRunnerTree(cmd *exec.Cmd) error {
15 if cmd.Process == nil {
16 return nil
17 }
18 return cmd.Process.Kill()
19}
20