Removed version update

Version control is maintained through go.mod file
Modified harness to only kill the application if not responded after 60 seconds in windows
This commit is contained in:
notzippy@gmail.com
2020-06-06 07:49:10 -07:00
parent 5070fb8be0
commit 6371373eb5
5 changed files with 7 additions and 17 deletions

View File

@@ -135,10 +135,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" {
if runtime.GOOS != "windows" {
// os.Interrupt is not available on windows
err = cmd.Process.Signal(os.Kill)
} else {
err = cmd.Process.Signal(os.Interrupt)
}

View File

@@ -332,11 +332,11 @@ func (h *Harness) Run() {
// Make a new channel to listen for the interrupt event
ch := make(chan os.Signal)
signal.Notify(ch, os.Interrupt, os.Kill)
<-ch
// Kill the app and exit
if h.app != nil {
h.app.Kill()
}
<-ch
os.Exit(1)
}