Skip to content

Commit

Permalink
Fix signal handler
Browse files Browse the repository at this point in the history
  • Loading branch information
helder-junior committed Nov 21, 2024
1 parent 885169e commit aad71bd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 2 additions & 1 deletion server/app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ import (
"net"
"os"
"os/signal"
"syscall"
"time"

"github.com/golang/protobuf/proto"
Expand Down Expand Up @@ -250,7 +251,7 @@ func (a *App) Run() {
pb.RegisterGRPCForwarderServer(a.grpcServer, a.Server)
var stopChan = make(chan os.Signal, 2)

signal.Notify(stopChan)
signal.Notify(stopChan, os.Interrupt, syscall.SIGTERM)
var errChan = make(chan error)

go func() {
Expand Down
3 changes: 1 addition & 2 deletions server/dev.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,5 @@ ADD .. /app

RUN apk add make build-base

RUN go install github.com/wadey/[email protected] && \
go install github.com/onsi/ginkgo/v2/[email protected] && \
RUN go install github.com/onsi/ginkgo/v2/[email protected] && \
go mod tidy

0 comments on commit aad71bd

Please sign in to comment.