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/system.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'internal/system.go') diff --git a/internal/system.go b/internal/system.go index a8d915ce..e98bb67e 100644 --- a/internal/system.go +++ b/internal/system.go @@ -109,7 +109,7 @@ func (s *Std) Open(name string) (fs.File, error) { return os.Open(name) } func (s *Std) Exit(code int) { - os.Exit(code) + fmsg.Exit(code) } const xdgRuntimeDir = "XDG_RUNTIME_DIR" -- cgit v1.3.1