summaryrefslogtreecommitdiff
path: root/runtime/client.zig
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/client.zig')
-rw-r--r--runtime/client.zig5
1 files changed, 5 insertions, 0 deletions
diff --git a/runtime/client.zig b/runtime/client.zig
index 329bdab3..7941889e 100644
--- a/runtime/client.zig
+++ b/runtime/client.zig
@@ -149,6 +149,11 @@ pub fn execAgain(s: *Start, view: u8) []const u8 {
k += 1;
}
envp[k] = null;
+ // The mask goes across an exec: the signals a terminal client blocks
+ // for its own sigwait (HUP, TERM) would stay blocked under a build that
+ // waits on fewer, a TERM never delivered.
+ const none = std.posix.sigemptyset();
+ std.posix.sigprocmask(std.posix.SIG.SETMASK, &none, null);
_ = libc.execve(path, &argv, envp.ptr);
return "Upgrade: the build at this client's start path would not start";
}