Skip to content

Commit

Permalink
fix: use working interrupt code
Browse files Browse the repository at this point in the history
  • Loading branch information
jyecusch committed May 13, 2021
1 parent e7aeed7 commit 48da720
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions plugins/gateway/lambda/lambda.go
Original file line number Diff line number Diff line change
Expand Up @@ -227,8 +227,7 @@ func (s *LambdaGateway) Start(handler handler.TriggerHandler) error {
// Assuming that this is blocking
s.runtime(s.handle)
// Signal process to terminate if no more lambda requests to handle
syscall.SIGTERM.Signal()
return nil
return syscall.Kill(syscall.Getpid(), syscall.SIGTERM)
}

func (s *LambdaGateway) Stop() error {
Expand Down

0 comments on commit 48da720

Please sign in to comment.