Skip to content

Commit

Permalink
Do not show stopping after process is done
Browse files Browse the repository at this point in the history
  • Loading branch information
shanzi committed Aug 13, 2016
1 parent 78a9a90 commit 15db1d1
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 1 addition & 0 deletions command/command.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ func (c *command) Terminate(wait time.Duration) {
return
}

log.Println("- Stopping")
// Try to stop the process by sending a SIGINT signal
if err := c.kill(syscall.SIGINT); err != nil {
log.Println("Failed to terminate process with interrupt:", err)
Expand Down
1 change: 0 additions & 1 deletion runner/runner.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ func (r *runner) Start() {
for fp := range matched {
files := gather(fp, matched, 500*time.Millisecond)

log.Println("- Stopping")
// Terminate previous running command
r.command.Terminate(2 * time.Second)

Expand Down

0 comments on commit 15db1d1

Please sign in to comment.