knadh / dns.toys

A DNS server that offers useful utilities and services over the DNS protocol. Weather, world time, unit conversion etc.
https://www.dns.toys
MIT License
2.48k stars 135 forks source link

Use a buffered channel for singal #44

Closed douglarek closed 1 year ago

douglarek commented 1 year ago

See https://pkg.go.dev/os/signal#Notify .

knadh commented 1 year ago

Thanks for the PR. Just a little confused as to whether there's a downside to the current approach which works. Did you face any issues running the program?