Files
Privatae e4c9b69b46
ci / personal-data (push) Successful in 5s
ci / test (push) Successful in 3m4s
ci / fuzz (push) Successful in 3m45s
bastion 0.53.2
2026-10-20 04:42:14 +00:00

13 lines
373 B
Go

//go:build !windows
package main
import "syscall"
// freezeSupported: unix stops a process with SIGSTOP, which it cannot catch or
// ignore, and a stopped process cannot fork.
const freezeSupported = true
func osStopProcess(pid int) error { return syscall.Kill(pid, syscall.SIGSTOP) }
func osResumeProcess(pid int) error { return syscall.Kill(pid, syscall.SIGCONT) }