commit
da0f867bf7
|
@ -40,7 +40,7 @@ type signalHandler struct {
|
||||||
tty *tty
|
tty *tty
|
||||||
}
|
}
|
||||||
|
|
||||||
// forward handles the main signal event loop forwarding, resizing, or reaping depeding
|
// forward handles the main signal event loop forwarding, resizing, or reaping depending
|
||||||
// on the signal received.
|
// on the signal received.
|
||||||
func (h *signalHandler) forward(process *libcontainer.Process) (int, error) {
|
func (h *signalHandler) forward(process *libcontainer.Process) (int, error) {
|
||||||
// make sure we know the pid of our main process so that we can return
|
// make sure we know the pid of our main process so that we can return
|
||||||
|
|
2
tty.go
2
tty.go
|
@ -10,7 +10,7 @@ import (
|
||||||
"github.com/opencontainers/runc/libcontainer"
|
"github.com/opencontainers/runc/libcontainer"
|
||||||
)
|
)
|
||||||
|
|
||||||
// newTty creates a new pty for use with the container. If a tty is not to be
|
// newTty creates a new tty for use with the container. If a tty is not to be
|
||||||
// created for the process, pipes are created so that the TTY of the parent
|
// created for the process, pipes are created so that the TTY of the parent
|
||||||
// process are not inherited by the container.
|
// process are not inherited by the container.
|
||||||
func newTty(create bool, p *libcontainer.Process, rootuid int) (*tty, error) {
|
func newTty(create bool, p *libcontainer.Process, rootuid int) (*tty, error) {
|
||||||
|
|
Loading…
Reference in New Issue