diff --git a/pkg/gui/containers_panel.go b/pkg/gui/containers_panel.go index 65a74e4a..ac97ecf1 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