Skip to content

Linger is An Open-Source Personal Agent That Runs Fully on Your PC. We aim to break Big Tech’s grip on AI by bringing powerful local AI to everyday computers through efficient model–harness co-design, so everyone can run their own.

566 B
Raw Blame
package selfupdate

// Handoff asks the process to replace itself with another bundle's daemon once
// its deferred shutdown, including instance lease release, has completed.
type Handoff struct {
	Path string
	Args []string
	Env  []string
}

func (h *Handoff) Error() string {
	return "Local Computer Daemon hands off to " + h.Path
}

// Exec replaces the current process image. The PID and process group stay the
// same, so supervisors and detached launchers keep tracking the daemon.
func (h *Handoff) Exec() error {
	return execProcess(h.Path, h.Args, h.Env)
}