Skip to content

Commit

Permalink
Logs PrepareForChildren
Browse files Browse the repository at this point in the history
  • Loading branch information
tylerstillwater committed Oct 29, 2020
1 parent d4e2fbe commit 6ef3342
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 6ef3342

Please sign in to comment.