Skip to content

Commit

Permalink
agent: add SIGINT to the signal handler
Browse files Browse the repository at this point in the history
Signed-off-by: Morten Linderud <[email protected]>
  • Loading branch information
Foxboron committed Jan 15, 2025
1 parent 26f061b commit 7275e88
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cmd/ssh-tpm-agent/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,7 @@ func main() {
// Signal handling
c := make(chan os.Signal, 1)
signal.Notify(c, syscall.SIGHUP)
signal.Notify(c, syscall.SIGINT)
go func() {
for range c {
agent.Stop()
Expand Down

0 comments on commit 7275e88

Please sign in to comment.