aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal/shim
diff options
context:
space:
mode:
authorOphestra Umiker <cat@ophivana.moe>2024-10-26 23:09:32 +0900
committerOphestra Umiker <cat@ophivana.moe>2024-10-26 23:09:32 +0900
commitae1a102882103221ef842176dfd8cb1090d5f591 (patch)
tree16f34686bac5564998a9a0e84be96d83ed3e59bd /internal/shim
parent093e99d062f873dc9d83b1f76a156c1ee4275c57 (diff)
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 <cat@ophivana.moe>
Diffstat (limited to 'internal/shim')
-rw-r--r--internal/shim/main.go4
1 files changed, 2 insertions, 2 deletions
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)
}
}
}