mirror of
https://github.com/opencontainers/runc.git
synced 2025-10-04 15:12:56 +08:00
Remove nsinit from comments
Signed-off-by: Zefan Li <lizefan@huawei.com>
This commit is contained in:
2
tty.go
2
tty.go
@@ -18,7 +18,7 @@ func newTty(create bool, p *libcontainer.Process, rootuid int) (*tty, error) {
|
|||||||
return createStdioPipes(p)
|
return createStdioPipes(p)
|
||||||
}
|
}
|
||||||
|
|
||||||
// setup standard pipes so that the TTY of the calling nsinit process
|
// setup standard pipes so that the TTY of the calling runc process
|
||||||
// is not inherited by the container.
|
// is not inherited by the container.
|
||||||
func createStdioPipes(p *libcontainer.Process) (*tty, error) {
|
func createStdioPipes(p *libcontainer.Process) (*tty, error) {
|
||||||
t := &tty{}
|
t := &tty{}
|
||||||
|
2
utils.go
2
utils.go
@@ -140,7 +140,7 @@ func fatalf(t string, v ...interface{}) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// getDefaultID returns a string to be used as the container id based on the
|
// getDefaultID returns a string to be used as the container id based on the
|
||||||
// current working directory of the nsinit process. This function panics
|
// current working directory of the runc process. This function panics
|
||||||
// if the cwd is unable to be found based on a system error.
|
// if the cwd is unable to be found based on a system error.
|
||||||
func getDefaultID() string {
|
func getDefaultID() string {
|
||||||
cwd, err := os.Getwd()
|
cwd, err := os.Getwd()
|
||||||
|
Reference in New Issue
Block a user