Merge pull request #2728 from weaveworks/issues/2653-ulogd-pdeathsig

SIGKILL ulogd on weave-npc exit
This commit is contained in:
Bryan Boreham authored and GitHub committed 2017-01-11 17:31:18 +00:00
commit 0145282a10
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