From 86b44451fc803183d8f7917877d3bb0ddc2f9576 Mon Sep 17 00:00:00 2001 From: Alexander Baryshnikov Date: Wed, 5 Jul 2017 16:34:56 +0300 Subject: [PATCH] remove pdeath --- monexec/executable.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/monexec/executable.go b/monexec/executable.go index 48a419c..7a90742 100644 --- a/monexec/executable.go +++ b/monexec/executable.go @@ -102,9 +102,6 @@ func (exe *Executable) stopOrKill(logger *log.Logger, cmd *exec.Cmd) { // run once executable, wrap output and wait for finish func (exe *Executable) runOnce(logger *log.Logger, stop <-chan struct{}) error { cmd := exec.Command(exe.Command, exe.Args...) - cmd.SysProcAttr = &syscall.SysProcAttr{ - Pdeathsig: syscall.SIGTERM, - } for _, param := range os.Environ() { cmd.Env = append(cmd.Env, param) }