]> git.giacomolli.uk - onechat/commit
Exit with status 0 when a signal stops the daemon
authorAnderson A. Giacomolli <agiacomolli@gmail.com>
Sat, 7 Nov 2026 02:53:53 +0000 (23:53 -0300)
committerAnderson A. Giacomolli <agiacomolli@gmail.com>
Sat, 7 Nov 2026 02:53:53 +0000 (23:53 -0300)
commit697c662a48c87ee9be136358129c1f79f4f5a72f
tree7337660c598a0a25fdba0104082aaeb028b73668
parent8b892c6a3384f510940c8a31e007ad97932f9af5
Exit with status 0 when a signal stops the daemon

A signal is the normal stop of the daemon and of the terminal client, so
both exit with status 0 and print no error after Ctrl-C or SIGTERM. The
other commands still report a canceled context, because a signal there
stops an operation before it is done.

Issue: 5daf23e
main.go