Skip to content

Commit

Permalink
Revert "feat: add the SIGINT signal in signals.go to listen for the…
Browse files Browse the repository at this point in the history
… user enter ctrl+c to exit the application operation"

This reverts commit cbcb1a8.
  • Loading branch information
Suyghur committed Oct 9, 2023
1 parent 88c20db commit 80fd7a9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/proc/signals.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ func init() {

// https://golang.org/pkg/os/signal/#Notify
signals := make(chan os.Signal, 1)
signal.Notify(signals, syscall.SIGUSR1, syscall.SIGUSR2, syscall.SIGTERM, syscall.SIGINT)
signal.Notify(signals, syscall.SIGUSR1, syscall.SIGUSR2, syscall.SIGTERM)

for {
v := <-signals
Expand All @@ -34,7 +34,7 @@ func init() {
profiler.Stop()
profiler = nil
}
case syscall.SIGTERM, syscall.SIGINT:
case syscall.SIGTERM:
select {
case <-done:
// already closed
Expand Down

0 comments on commit 80fd7a9

Please sign in to comment.