fix logging during gotwebd shutdown
commit736fac9082f40fedb3e0fe65f715dc403eb7b250
authorOmar Polo <op@omarpolo.com>
Sat, 10 Feb 2024 16:19:02 +0000 (10 16:19 +0000)
committerOmar Polo <op@omarpolo.com>
Sat, 10 Feb 2024 16:19:02 +0000 (10 16:19 +0000)
tree34eeead215cce4d1fe629294f4da44485cee6cad
parent2fbb00a4292fb45faa409c8983136a105cbda7ba
fix logging during gotwebd shutdown

During `rcctl stop gotwebd' the sockets process gets a SIGTERM and
dies, and this makes the parent process assume it exited abnormally.
Instead, catch SIGINT and SIGTERM and exit gracefully.

Issue reported by xs on IRC.

ok jamsek
gotwebd/sockets.c