From ae0cb5d483b057242fcf89fe00b9a877d63b90ef Mon Sep 17 00:00:00 2001 From: Adam Harrison Date: Wed, 11 Jan 2017 14:12:01 +0000 Subject: [PATCH] SIGKILL ulogd on weave-npc exit --- npc/ulogd/ulogd.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/npc/ulogd/ulogd.go b/npc/ulogd/ulogd.go index 8306318a..b61e0bc6 100644 --- a/npc/ulogd/ulogd.go +++ b/npc/ulogd/ulogd.go @@ -4,6 +4,7 @@ import ( "io" "os" "os/exec" + "syscall" "github.com/weaveworks/weave/common" ) @@ -17,6 +18,9 @@ func waitForExit(cmd *exec.Cmd) { func Start() error { cmd := exec.Command("/usr/sbin/ulogd", "-v") + cmd.SysProcAttr = &syscall.SysProcAttr{ + Pdeathsig: syscall.SIGKILL, + } stdout, err := cmd.StderrPipe() if err != nil { return err