1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

Remove SysinitPath from process

Docker-DCO-1.1-Signed-off-by: Michael Crosby <michael@crosbymichael.com> (github: crosbymichael)
This commit is contained in:
Michael Crosby 2014-01-13 15:09:41 -08:00
parent f846ecdc77
commit 1e81387edc
3 changed files with 23 additions and 24 deletions

View file

@ -686,7 +686,6 @@ func (container *Container) Start() (err error) {
Network: en,
Tty: container.Config.Tty,
User: container.Config.User,
SysInitPath: runtime.sysInitPath,
}
container.process.SysProcAttr = &syscall.SysProcAttr{Setsid: true}

View file

@ -40,7 +40,6 @@ type Process struct {
ConfigPath string
Tty bool
Network *Network // if network is nil then networking is disabled
SysInitPath string
}
func (c *Process) Pid() int {

View file

@ -256,6 +256,7 @@ func linkLxcStart(root string) error {
return os.Symlink(sourcePath, targetPath)
}
// TODO: This can be moved to the mountinfo reader in the mount pkg
func rootIsShared() bool {
if data, err := ioutil.ReadFile("/proc/self/mountinfo"); err == nil {
for _, line := range strings.Split(string(data), "\n") {