Skip to content

Commit 64bb59f

Browse files
cypharkolyshkin
authored andcommitted
nsenter: improve debug logging
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 <asarai@suse.de> Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
1 parent bb28c44 commit 64bb59f

File tree

4 files changed

+186
-114
lines changed

4 files changed

+186
-114
lines changed

libcontainer/init_linux.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ const (
3535
)
3636

3737
type pid struct {
38-
Pid int `json:"pid"`
39-
PidFirstChild int `json:"pid_first"`
38+
Pid int `json:"stage2_pid"`
39+
PidFirstChild int `json:"stage1_pid"`
4040
}
4141

4242
// network is an internal struct used to setup container networks.

0 commit comments

Comments
 (0)