okami.mom/albedo

git clone https://git.nkp.pet/okami.mom/albedo

Aly Raffaufrefactor(cli): extract local daemon lifecycled9c1a13

main
453 B21 linesraw
1//go:build !unix
2
3package localdaemon
4
5import (
6	"errors"
7	"os"
8	"os/exec"
9)
10
11func detach(cmd *exec.Cmd) {}
12
13func passFileLimit() {}
14
15// processAlive cannot be checked portably here; assume the lock holder is live.
16func processAlive(int) bool { return true }
17
18func tryLauncherLock(*os.File) (bool, error) {
19	return false, errors.New("local daemon launch requires a platform with advisory file locks")
20}
21func endpointRefused(error) bool { return false }