Skip to content

Commit

Permalink
nsenter: improve debug logging
Browse files Browse the repository at this point in the history
In order to make 'runc --debug' actually useful for debugging nsexec
bugs, provide information about all the internal operations when in
debug mode.

[@kolyshkin: rebasing; fix formatting via indent for make validate to pass]

Signed-off-by: Aleksa Sarai <[email protected]>
Signed-off-by: Kir Kolyshkin <[email protected]>
  • Loading branch information
cyphar authored and kolyshkin committed Apr 8, 2021
1 parent bb28c44 commit 64bb59f
Show file tree
Hide file tree
Showing 4 changed files with 186 additions and 114 deletions.
4 changes: 2 additions & 2 deletions libcontainer/init_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ const (
)

type pid struct {
Pid int `json:"pid"`
PidFirstChild int `json:"pid_first"`
Pid int `json:"stage2_pid"`
PidFirstChild int `json:"stage1_pid"`
}

// network is an internal struct used to setup container networks.
Expand Down
Loading

0 comments on commit 64bb59f

Please sign in to comment.