diff options
| author | Ophestra <cat@gensokyo.uk> | 2025-03-17 01:09:12 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2025-03-17 01:10:27 +0900 |
| commit | ee108603572101ad3c285830e04ee248916b6c5d (patch) | |
| tree | e3d2274301cf7f1ed39df9c510672745fbe0b08a /internal/sandbox | |
| parent | 44277dc0f1fd1806f5ceea34246a4c805a06b61b (diff) | |
seccomp: install output atomically
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/sandbox')
| -rw-r--r-- | internal/sandbox/init.go | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/internal/sandbox/init.go b/internal/sandbox/init.go index 0249e581..85fcb13c 100644 --- a/internal/sandbox/init.go +++ b/internal/sandbox/init.go @@ -72,11 +72,8 @@ func Init(exit func(code int)) { log.Fatal("invalid setup parameters") } - fmsg.Store(params.Verbose) + internal.InstallFmsg(params.Verbose) fmsg.Verbose("received setup parameters") - if params.Verbose { - seccomp.CPrintln = fmsg.Verbose - } closeSetup = f offsetSetup = int(setupFile.Fd() + 1) } |
