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.
| 1 | //go:build unix |
| 2 | |
| 3 | package container |
| 4 | |
| 5 | import "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. |
| 10 | func processAlive(pid int) bool { |
| 11 | err := syscall.Kill(pid, 0) |
| 12 | return err == nil || err == syscall.EPERM |
| 13 | } |
| 14 |