Add more debugs

Signed-off-by: Mrunal Patel <mpatel@redhat.com>
This commit is contained in:
Mrunal Patel 2016-10-21 11:14:22 -04:00
parent 6f9e51fc7d
commit 7f726b704a
3 changed files with 12 additions and 2 deletions

View file

@ -144,7 +144,6 @@ func StartReaper() {
for {
// Wait for a child to terminate
sig := <-sigs
logrus.Infof("Signal received: %v", sig)
for {
// Reap processes
cpid, _ := syscall.Wait4(-1, nil, syscall.WNOHANG, nil)
@ -152,7 +151,7 @@ func StartReaper() {
break
}
logrus.Infof("Reaped process with pid %d", cpid)
logrus.Debugf("Reaped process with pid %d %v", cpid, sig)
}
}
}()