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

14 lines
638 B
Go

//go:build !windows && !darwin
package main
// guardSingleRun is a no-op on Linux: acquireSingletonLock (singleton.go)
// already holds the machine-wide exclusion lock there, and its semantics are
// deliberately different — the loser becomes a STANDBY blocked in the kernel
// until the primary dies, because systemd is holding the unit open and a
// standby taking over on death is the wanted behaviour. An ordinary Windows
// install has no service to do that, so it refuses instead; see
// runguard_windows.go. macOS refuses a `run` beside its system service; see
// runguard_darwin.go.
func guardSingleRun() error { return nil }