SIGKILL ulogd on weave-npc exit
This commit is contained in:
1 parent
92cfd3b4f9
commit
ae0cb5d483
1 file changed
+4
@@ -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
|
||||
|
||||
Reference in new issue
Block a user