SIGKILL ulogd on weave-npc exit

This commit is contained in:
Adam Harrison committed 2017-01-11 14:12:01 +00:00
1 parent 92cfd3b4f9
commit ae0cb5d483
1 file changed
+4
+4
View File
@@ -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