mirror of
https://github.com/BaaRai/ARTEX.git
synced 2026-12-03 13:11:05 +00:00
The v0.7.1 release failed in its darwin binaries job: killswitch_unix.go is built for every unix target but calls syscall.SYS_PRCTL, which only exists on Linux. The Linux CI never compiled another GOOS, so the tag passed CI and broke the release build after the push. Move the prctl call to killswitch_prctl_linux.go, keep a no-op for the other unix targets, and add a cross-compile step to the go job so darwin and windows break in CI instead of in the release.
8 lines
280 B
Go
8 lines
280 B
Go
//go:build unix && !linux
|
|
|
|
package server
|
|
|
|
// enableLocalKillSubreaper is Linux only: PR_SET_CHILD_SUBREAPER and the /proc
|
|
// walk behind the local kill switch do not exist on the other unix targets, so
|
|
// they keep the previous no-op behavior.
|
|
func enableLocalKillSubreaper() {}
|