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"
|
"io"
|
||||||
"os"
|
"os"
|
||||||
"os/exec"
|
"os/exec"
|
||||||
|
"syscall"
|
||||||
|
|
||||||
"github.com/weaveworks/weave/common"
|
"github.com/weaveworks/weave/common"
|
||||||
)
|
)
|
||||||
@@ -17,6 +18,9 @@ func waitForExit(cmd *exec.Cmd) {
|
|||||||
|
|
||||||
func Start() error {
|
func Start() error {
|
||||||
cmd := exec.Command("/usr/sbin/ulogd", "-v")
|
cmd := exec.Command("/usr/sbin/ulogd", "-v")
|
||||||
|
cmd.SysProcAttr = &syscall.SysProcAttr{
|
||||||
|
Pdeathsig: syscall.SIGKILL,
|
||||||
|
}
|
||||||
stdout, err := cmd.StderrPipe()
|
stdout, err := cmd.StderrPipe()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
|
|||||||
Reference in new issue
Block a user