Logs PrepareForChildren

This commit is contained in:
Tyler Stillwater 2020-10-16 10:08:48 -06:00 committed by tylerstillwater
parent d4e2fbe6a3
commit 6ef3342e96

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