mirror of
https://github.com/jesseduffield/lazydocker.git
synced 2026-07-25 08:31:03 +00:00
Logs PrepareForChildren
This commit is contained in:
parent
d4e2fbe6a3
commit
6ef3342e96
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