mirror of
https://github.com/opencontainers/runc.git
synced 2026-07-11 06:03:57 +08:00
Only define a single process
This removes the Processes slice and only allows for one process of the container. It also renames TTY to Terminal for a cross platform meaning. Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
This commit is contained in:
+1
-1
@@ -82,7 +82,7 @@ func restoreContainer(context *cli.Context, spec *Spec, config *configs.Config,
|
||||
Stdout: os.Stdout,
|
||||
Stderr: os.Stderr,
|
||||
}
|
||||
tty, err := newTty(spec.Processes[0].TTY, process, rootuid)
|
||||
tty, err := newTty(spec.Process.Terminal, process, rootuid)
|
||||
if err != nil {
|
||||
return -1, err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user