From 6ef3342e96ae73d8ee679c40e0e863d15d9384d1 Mon Sep 17 00:00:00 2001 From: Tyler Stillwater Date: Fri, 16 Oct 2020 10:08:48 -0600 Subject: [PATCH] Logs PrepareForChildren --- pkg/gui/containers_panel.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkg/gui/containers_panel.go b/pkg/gui/containers_panel.go index 65a74e4ae..ac97ecf14 100644 --- a/pkg/gui/containers_panel.go +++ b/pkg/gui/containers_panel.go @@ -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