Files
lincodex/runner/testdata/hostile/go/ignore_signals.go
T

15 lines
300 B
Go

// Timeout survival: ignores every catchable signal and spins; only SIGKILL
// from the supervisor stops it.
package main
import (
"os/signal"
"syscall"
)
func main() {
signal.Ignore(syscall.SIGTERM, syscall.SIGINT, syscall.SIGHUP, syscall.SIGXCPU, syscall.SIGALRM, syscall.SIGUSR1)
for {
}
}