Merge pull request #200 from julidau/develop

harness: interrupt process on windows as well
This commit is contained in:
Steve
2022-03-06 08:58:38 -08:00
committed by GitHub

View File

@@ -11,7 +11,6 @@ import (
"io"
"os"
"os/exec"
"runtime"
"sync"
"time"
@@ -133,11 +132,8 @@ func (cmd AppCmd) Kill() {
// Send an interrupt signal to allow for a graceful shutdown
utils.Logger.Info("Killing revel server pid", "pid", cmd.Process.Pid)
var err error
if runtime.GOOS != "windows" {
// os.Interrupt is not available on windows
err = cmd.Process.Signal(os.Interrupt)
}
err := cmd.Process.Signal(os.Interrupt)
if err != nil {
utils.Logger.Info(