Fix formatting issues, and missing test methods.

Docker-DCO-1.1-Signed-off-by: Ross Boucher <rboucher@gmail.com> (github: boucher)
This commit is contained in:
boucher 2015-04-29 08:14:54 -07:00 committed by Michael Crosby
parent 8f0cad54ac
commit 78a21b77b2
3 changed files with 10 additions and 3 deletions

View File

@ -74,6 +74,13 @@ func (m *mockProcess) signal(_ os.Signal) error {
return nil return nil
} }
func (p *mockProcess) externalDescriptors() []string {
return []string{}
}
func (p *mockProcess) setExternalDescriptors(newFds []string) {
}
func TestGetContainerPids(t *testing.T) { func TestGetContainerPids(t *testing.T) {
container := &linuxContainer{ container := &linuxContainer{
id: "myid", id: "myid",

View File

@ -2,10 +2,10 @@ package main
import ( import (
"fmt" "fmt"
"strconv"
"strings"
"github.com/codegangsta/cli" "github.com/codegangsta/cli"
"github.com/docker/libcontainer" "github.com/docker/libcontainer"
"strconv"
"strings"
) )
var checkpointCommand = cli.Command{ var checkpointCommand = cli.Command{

View File

@ -189,7 +189,7 @@ func (p *initProcess) start() error {
if err != nil { if err != nil {
return newSystemError(err) return newSystemError(err)
} }
p.setExternalDescriptors(fds); p.setExternalDescriptors(fds)
// Do this before syncing with child so that no children // Do this before syncing with child so that no children
// can escape the cgroup // can escape the cgroup