summaryrefslogtreecommitdiff
path: root/src/daemon.zig
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-10-29 22:56:07 -0300
committerGabriel Schneider <[email protected]>2026-10-29 23:37:00 -0300
commit370913ae34c69b7958911c6146612c77275f6ebf (patch)
tree61e4fd328e104afbb381d2fd161029d1be637aa7 /src/daemon.zig
parentddcfd860ef05c37f5536038d8828cc81c0c4125c (diff)
downloadpardes-370913ae34c69b7958911c6146612c77275f6ebf.tar.gz
pardes-370913ae34c69b7958911c6146612c77275f6ebf.zip
upgrade: a newer build at the path a session started from is said at a focus-in, once a build, the path read just after the first frame (off a startup's way); an upgraded process lets the binary it replaced go (held, its deleted file kept its blocks) and sweeps its old image's prompt files (kept for an exec that failed); test/daemon.py --upgrade asks through /ctl, checks the fds and prompt files level, and runs on FreeBSD (procstat, the daemon's registry, no kept old binary there)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Diffstat (limited to 'src/daemon.zig')
-rw-r--r--src/daemon.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/daemon.zig b/src/daemon.zig
index 43f15c6c..785f4afd 100644
--- a/src/daemon.zig
+++ b/src/daemon.zig
@@ -1087,7 +1087,7 @@ pub fn serve(state: ?[]const u8) noreturn {
ninep_io.setCloexec(4);
const ignore: posix.Sigaction = .{ .handler = .{ .handler = posix.SIG.IGN }, .mask = posix.sigemptyset(), .flags = 0 };
for ([_]posix.SIG{ .PIPE, .HUP, .INT }) |sig| posix.sigaction(sig, &ignore, null);
- upgrade.remember(&.{});
+ upgrade.locate();
var d: Daemon = .{};
const given = if (state) |text| d.restore(text) else -1;
const replicas = if (given >= 0) given else listenReplicas();