Skip to content
This repository has been archived by the owner on Jun 20, 2024. It is now read-only.

Commit

Permalink
Merge pull request #2728 from /issues/2653-ulogd-pdeathsig
Browse files Browse the repository at this point in the history
SIGKILL ulogd on weave-npc exit
  • Loading branch information
bboreham authored Jan 11, 2017
2 parents 92cfd3b + ae0cb5d commit 0145282
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions npc/ulogd/ulogd.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"io"
"os"
"os/exec"
"syscall"

"github.com/weaveworks/weave/common"
)
Expand All @@ -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
Expand Down

0 comments on commit 0145282

Please sign in to comment.