From a8608653032c7e904bc90454a0f8617f8c1a4267 Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Thu, 29 Jan 2026 17:13:17 -0800 Subject: [PATCH] std.Build.Step: evalZigProcess handles EndOfStream and a happy little info log when the process needs to be restarted --- lib/std/Build/Step.zig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/std/Build/Step.zig b/lib/std/Build/Step.zig index 0dd4b932800b3ee9c3e65dd2347381263f0eb34b..cfc263b7701e34f0ef762ae3f2524d0cac850f37 100644 --- a/lib/std/Build/Step.zig +++ b/lib/std/Build/Step.zig @@ -416,7 +416,8 @@ pub fn evalZigProcess( assert(watch); if (std.Progress.have_ipc) if (zp.progress_ipc_fd) |fd| prog_node.setIpcFd(fd); const result = zigProcessUpdate(s, zp, watch, web_server, gpa) catch |err| switch (err) { - error.BrokenPipe => { + error.BrokenPipe, error.EndOfStream => |reason| { + std.log.info("{s} restart required: {t}", .{ argv[0], reason }); // Process restart required. const term = zp.child.wait(io) catch |e| { return s.fail("unable to wait for {s}: {t}", .{ argv[0], e }); -- 2.54.0