From 93934eb609a47ff5a8f25c50d84a0fa89bbd449c Mon Sep 17 00:00:00 2001 From: Colin Date: Sun, 5 Jan 2025 07:52:19 +0000 Subject: [PATCH] bunpen: make pasta logging more verbose --- pkgs/by-name/bunpen/restrict/pasta.ha | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkgs/by-name/bunpen/restrict/pasta.ha b/pkgs/by-name/bunpen/restrict/pasta.ha index 84ac44141..4682ce05f 100644 --- a/pkgs/by-name/bunpen/restrict/pasta.ha +++ b/pkgs/by-name/bunpen/restrict/pasta.ha @@ -40,7 +40,7 @@ fn pasta_restrict(net: resources::net_subset) void = { let (pipe_parent_rd, pipe_child_wr) = unix::pipe()!; let (pipe_child_rd, pipe_parent_wr) = unix::pipe()!; - log::printfln("[namespace/pasta]: forking: child will launch pasta while parent will exec user code"); + log::printfln("[namespace/pasta] forking: child will launch pasta while parent will exec user code"); match (ps::fork_and_die_with_parent()) { case let child_pid: os::exec::process => // close the pipe ends which aren't ours @@ -62,6 +62,8 @@ fn pasta_restrict(net: resources::net_subset) void = { let pasta_pid: [32]u8 = [0...]; io::read(pipe_parent_rd, &pasta_pid)!; + log::println("[namespace/pasta] child signaled readiness: continuing"); + // cleanup: we're done with the pipes io::close(pipe_parent_wr)!; io::close(pipe_parent_rd)!;