mirror of https://github.com/perkeep/perkeep.git
Merge "buildbot: send sigterm instead of sigkill to child"
This commit is contained in:
commit
831a81f2d9
|
@ -210,8 +210,8 @@ func (t *task) run() (string, error) {
|
|||
t.Err = fmt.Sprintf("%v\n\nTask %q took too long. Giving up after %v seconds.\n",
|
||||
t.Err, t.String(), *taskLifespan)
|
||||
if cmd.Process != nil {
|
||||
if err := cmd.Process.Kill(); err != nil {
|
||||
dbg.Printf("Could not kill process for task %q: %v", t.String(), err)
|
||||
if err := cmd.Process.Signal(syscall.SIGTERM); err != nil {
|
||||
dbg.Printf("Could not terminate process for task %q: %v", t.String(), err)
|
||||
}
|
||||
}
|
||||
return "", t
|
||||
|
|
Loading…
Reference in New Issue