mirror of
https://github.com/tailscale/tailscale.git
synced 2026-11-24 10:41:19 -08:00
Route SIGINT and SIGTERM through systray.Quit so the native tray loop returns and invokes the exit callback. Stop signal delivery when Run returns. Treat watcher cancellation as normal shutdown rather than terminating the process with log.Fatal, and interrupt the reconnect delay when canceled. Serialize exit cleanup with menu rebuilds. Add subprocess tests for SIGINT, SIGTERM and the Quit menu action using a private session bus and a fake LocalAPI. Fixes #22582 Change-Id: I2360e203d4cc9bf3f0245133e9535d353b780e2c Signed-off-by: fQwQf <[email protected]>