From 064113363d208fed1d34c9acd05aab3a9b76ea9d Mon Sep 17 00:00:00 2001 From: Qiang Huang Date: Thu, 28 Jan 2016 09:58:30 +0800 Subject: [PATCH] Fix the comment about sendConfig Signed-off-by: Qiang Huang --- libcontainer/process_linux.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libcontainer/process_linux.go b/libcontainer/process_linux.go index ac457c26..353c87e9 100644 --- a/libcontainer/process_linux.go +++ b/libcontainer/process_linux.go @@ -315,7 +315,9 @@ func (p *initProcess) startTime() (string, error) { } func (p *initProcess) sendConfig() error { - // send the state to the container's init process then shutdown writes for the parent + // send the config to the container's init process, we don't use JSON Encode + // here because there might be a problem in JSON decoder in some cases, see: + // https://github.com/docker/docker/issues/14203#issuecomment-174177790 return utils.WriteJSON(p.parentPipe, p.config) }