Skip to content

Commit

Permalink
(#342) Add signal.Ignore(os.Interrpt) on the top level experimentally
Browse files Browse the repository at this point in the history
  • Loading branch information
hymkor committed Dec 6, 2020
1 parent a487b63 commit 5af8404
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions frame/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ import (
"io"
"io/ioutil"
"os"
"os/signal"
"runtime/debug"
"syscall"

"github.com/go-ole/go-ole"
"github.com/mattn/go-colorable"
Expand Down Expand Up @@ -46,6 +48,8 @@ func Start(mainHandler func() error) error {
defer clean(true)
}

signal.Ignore(os.Interrupt, syscall.SIGINT, syscall.SIGTERM)

return mainHandler()
}

Expand Down

0 comments on commit 5af8404

Please sign in to comment.