cmd/tailscaled: graceful shutdown (#534)

Signed-off-by: Dmytro Shynkevych <dmytro@tailscale.com>
This commit is contained in:
Dmytro Shynkevych
2020-07-13 06:17:58 -04:00
committed by GitHub
parent 6255ce55df
commit 61abab999e
5 changed files with 40 additions and 7 deletions

View File

@@ -224,6 +224,7 @@ func Run(rctx context.Context, logf logger.Logf, logid string, opts Options, e w
}
stopAll()
b.Shutdown()
return rctx.Err()
}