diff --git a/utils/oomparser/oomparser.go b/utils/oomparser/oomparser.go index ae277d2699..e9e6041cc5 100644 --- a/utils/oomparser/oomparser.go +++ b/utils/oomparser/oomparser.go @@ -22,6 +22,7 @@ import ( "path" "regexp" "strconv" + "syscall" "time" "github.com/google/cadvisor/utils" @@ -167,6 +168,9 @@ func (self *OomParser) StreamOoms(outStream chan *OomInstance) { func callJournalctl() (io.ReadCloser, error) { cmd := exec.Command("journalctl", "-k", "-f") + cmd.SysProcAttr = &syscall.SysProcAttr{ + Pdeathsig: syscall.SIGKILL, + } readcloser, err := cmd.StdoutPipe() if err != nil { return nil, err