mirror of
https://github.com/tailscale/tailscale.git
synced 2026-10-06 10:21:39 -04:00
cmd/tailscaled: log on shutdown signal
This commit is contained in:
1 parent
2072dcc127
commit
ff8c8db9d3
1 file changed
+2
-1
@@ -153,7 +153,8 @@ func run() error {
|
||||
interrupt := make(chan os.Signal, 1)
|
||||
signal.Notify(interrupt, syscall.SIGINT, syscall.SIGTERM)
|
||||
select {
|
||||
case <-interrupt:
|
||||
case s := <-interrupt:
|
||||
logf("tailscaled got signal %v; shutting down", s)
|
||||
cancel()
|
||||
case <-ctx.Done():
|
||||
// continue
|
||||
|
||||
Reference in new issue
Block a user