Skip to content
This repository has been archived by the owner on Mar 3, 2021. It is now read-only.

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
Mikhail Konovalov committed Sep 29, 2020
1 parent 6cb4f87 commit 2bec8e8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions multirun/process.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,9 @@ func (p *process) run(ctx context.Context) error {
select {
case <-ctx.Done(): // process should be terminated earlier
if err := cmd.Process.Signal(syscall.SIGTERM); err != nil {
_, _ = fmt.Fprintf(p.stderrSink, "[multirun:%s] Failed to send SIGTERM, sending SIGKILL\n", p.tag)
_, _ = fmt.Fprintf(p.stderrSink, "[multirun:%s] Failed to send SIGTERM %s, sending SIGKILL\n", p.tag, err.Error())
if err = cmd.Process.Kill(); err != nil {
_, _ = fmt.Fprintf(p.stderrSink, "[multirun:%s] Failed to send SIGKILL\n", p.tag)
_, _ = fmt.Fprintf(p.stderrSink, "[multirun:%s] Failed to send SIGKILL %s\n", p.tag, err.Error())
}
}
case <-done:
Expand Down

0 comments on commit 2bec8e8

Please sign in to comment.