Add logging about subreaper

Signed-off-by: Alexander Morozov <lk4d4@docker.com>
This commit is contained in:
Alexander Morozov 2015-12-08 09:41:10 -08:00
parent 9f5caf529c
commit 46b2a560c0

View file

@ -103,6 +103,9 @@ func daemon(id, stateDir string, concurrency, bufferSize int) error {
} }
// only set containerd as the subreaper if it is not an init process // only set containerd as the subreaper if it is not an init process
if pid := os.Getpid(); pid != 1 { if pid := os.Getpid(); pid != 1 {
logrus.WithFields(logrus.Fields{
"pid": pid,
}).Debug("containerd is not init, set as subreaper")
if err := setSubReaper(); err != nil { if err := setSubReaper(); err != nil {
return err return err
} }