Merge pull request #241 from tylerstillwater/fix-empty-logs

Fix Logs (and others) tab always being empty
This commit is contained in:
Jesse Duffield 2020-11-13 13:53:13 +11:00 committed by GitHub
commit ff0a53bfad
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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