diff options
| author | Ophestra <cat@gensokyo.uk> | 2025-10-23 08:11:00 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2025-10-23 08:11:00 +0900 |
| commit | 0fd357e7f64ec029489bbbcc7935005a26cb9a13 (patch) | |
| tree | 6e42b8b3f327b61aa0124ec4c5bf045cdf08bb33 /container/init.go | |
| parent | 57231d4acf41ac01aa96a558c8d3017054b15269 (diff) | |
container/init: do not suspend output
Init is not very talkative after process start even when verbose. Suspending output here is pointless and does more harm than good.
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'container/init.go')
| -rw-r--r-- | container/init.go | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/container/init.go b/container/init.go index 0f5edb19..5c4d2519 100644 --- a/container/init.go +++ b/container/init.go @@ -341,7 +341,6 @@ func initEntrypoint(k syscallDispatcher, msg message.Msg) { if err := k.start(cmd); err != nil { k.fatalf(msg, "%v", err) } - msg.Suspend() if err := closeSetup(); err != nil { k.printf(msg, "cannot close setup pipe: %v", err) @@ -401,7 +400,6 @@ func initEntrypoint(k syscallDispatcher, msg message.Msg) { select { case s := <-sig: if s == CancelSignal && params.ForwardCancel && cmd.Process != nil { - msg.Resume() msg.Verbose("forwarding context cancellation") if err := k.signal(cmd, os.Interrupt); err != nil { k.printf(msg, "cannot forward cancellation: %v", err) @@ -417,11 +415,7 @@ func initEntrypoint(k syscallDispatcher, msg message.Msg) { continue } - if msg.Resume() { - msg.Verbosef("%s after process start", s.String()) - } else { - msg.Verbosef("got %s", s.String()) - } + msg.Verbosef("got %s", s.String()) msg.BeforeExit() k.exit(0) @@ -433,9 +427,6 @@ func initEntrypoint(k syscallDispatcher, msg message.Msg) { } if w.wpid == cmd.Process.Pid { - // initial process exited, output is most likely available again - msg.Resume() - switch { case w.wstatus.Exited(): r = w.wstatus.ExitStatus() |
