Skip to content

Commit

Permalink
remove pdeath
Browse files Browse the repository at this point in the history
  • Loading branch information
reddec committed Jul 5, 2017
1 parent a0c4875 commit 86b4445
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions monexec/executable.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit 86b4445

Please sign in to comment.