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 381 B
1//go:build unix
2
3package container
4
5import "syscall"
6
7// processAlive reports whether a process with this pid still exists. Signal 0
8// asks the kernel without delivering anything, so a stale job directory is only
9// reclaimed when the runner that owned it is really gone.
10func processAlive(pid int) bool {
11 err := syscall.Kill(pid, 0)
12 return err == nil || err == syscall.EPERM
13}
14