From ae1a102882103221ef842176dfd8cb1090d5f591 Mon Sep 17 00:00:00 2001 From: Ophestra Umiker Date: Sat, 26 Oct 2024 23:09:32 +0900 Subject: fmsg: support temporarily withholding output Trying to print to a shared stdout is a terrible idea. This change makes it possible to withhold output for the lifetime of the sandbox. Signed-off-by: Ophestra Umiker --- internal/shim/main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'internal/shim') diff --git a/internal/shim/main.go b/internal/shim/main.go index f53e8fb6..52a8fa9e 100644 --- a/internal/shim/main.go +++ b/internal/shim/main.go @@ -134,9 +134,9 @@ func doShim(socket string) { fmsg.VPrintln("wait:", err) } if b.Unwrap().ProcessState != nil { - os.Exit(b.Unwrap().ProcessState.ExitCode()) + fmsg.Exit(b.Unwrap().ProcessState.ExitCode()) } else { - os.Exit(127) + fmsg.Exit(127) } } } -- cgit v1.3.1