mirror of
https://codeberg.org/ziglang/zig.git
synced 2026-03-08 02:24:33 +01:00
std.Build.Step: evalZigProcess handles EndOfStream
and a happy little info log when the process needs to be restarted
This commit is contained in:
parent
866ee4f1c5
commit
a41ee5994d
1 changed files with 2 additions and 1 deletions
|
|
@ -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 });
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue