diff options
| author | Ophestra Umiker <cat@ophivana.moe> | 2024-10-26 23:09:32 +0900 |
|---|---|---|
| committer | Ophestra Umiker <cat@ophivana.moe> | 2024-10-26 23:09:32 +0900 |
| commit | ae1a102882103221ef842176dfd8cb1090d5f591 (patch) | |
| tree | 16f34686bac5564998a9a0e84be96d83ed3e59bd /helper | |
| parent | 093e99d062f873dc9d83b1f76a156c1ee4275c57 (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 'helper')
| -rw-r--r-- | helper/stub.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/helper/stub.go b/helper/stub.go index c0be010b..5b45896f 100644 --- a/helper/stub.go +++ b/helper/stub.go @@ -11,6 +11,7 @@ import ( "testing" "git.ophivana.moe/security/fortify/helper/bwrap" + "git.ophivana.moe/security/fortify/internal/fmsg" ) // InternalChildStub is an internal function but exported because it is cross-package; @@ -33,7 +34,7 @@ func InternalChildStub() { genericStub(argsFD, statFD) } - os.Exit(0) + fmsg.Exit(0) } // InternalReplaceExecCommand is an internal function but exported because it is cross-package; |
