mirror of
https://github.com/jesseduffield/lazydocker.git
synced 2026-07-24 16:11:04 +00:00
Merge pull request #241 from tylerstillwater/fix-empty-logs
Fix Logs (and others) tab always being empty
This commit is contained in:
commit
ff0a53bfad
1 changed files with 5 additions and 0 deletions
|
|
@ -186,6 +186,11 @@ func (gui *Gui) renderContainerLogs(container *commands.Container) error {
|
||||||
)
|
)
|
||||||
cmd := gui.OSCommand.RunCustomCommand(command)
|
cmd := gui.OSCommand.RunCustomCommand(command)
|
||||||
|
|
||||||
|
// Ensure the child process is treated as a group, as the child process spawns
|
||||||
|
// its own children. Termination requires sending the signal to the group
|
||||||
|
// process ID.
|
||||||
|
gui.OSCommand.PrepareForChildren(cmd)
|
||||||
|
|
||||||
mainView := gui.getMainView()
|
mainView := gui.getMainView()
|
||||||
cmd.Stdout = mainView
|
cmd.Stdout = mainView
|
||||||
cmd.Stderr = mainView
|
cmd.Stderr = mainView
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue