diff --git a/libcontainer/process_linux.go b/libcontainer/process_linux.go index 9ff43861..889a4b18 100644 --- a/libcontainer/process_linux.go +++ b/libcontainer/process_linux.go @@ -85,13 +85,13 @@ func (p *setnsProcess) start() (err error) { return newSystemError(err) } } - if err := utils.WriteJSON(p.parentPipe, p.config); err != nil { - return newSystemError(err) - } // set oom_score_adj if err := setOomScoreAdj(p.config.Config.OomScoreAdj, p.pid()); err != nil { return newSystemError(err) } + if err := utils.WriteJSON(p.parentPipe, p.config); err != nil { + return newSystemError(err) + } if err := syscall.Shutdown(int(p.parentPipe.Fd()), syscall.SHUT_WR); err != nil { return newSystemError(err)