Skip to content

Commit

Permalink
Merge pull request #241 from tylerstillwater/fix-empty-logs
Browse files Browse the repository at this point in the history
Fix Logs (and others) tab always being empty
  • Loading branch information
jesseduffield authored Nov 13, 2020
2 parents d4e2fbe + 6ef3342 commit ff0a53b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pkg/gui/containers_panel.go
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,11 @@ func (gui *Gui) renderContainerLogs(container *commands.Container) error {
)
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()
cmd.Stdout = mainView
cmd.Stderr = mainView
Expand Down

0 comments on commit ff0a53b

Please sign in to comment.