Only a very restricted set of signals allowed?
Hi,
I read knotd's treatment of signals, i.e., src/utils/knotd/main.c
in functions setup_signals()
, enable_signals()
and the callers of those functions. It looks like knotd blocks almost all signals except for a very limited subset like SIGHUP
, SIGINT
, and SIGTERM
, which by default do not dump core.
I would recommend also allowing a few more signals that are typically used for debugging, e.g. SIGABRT
, SIGQUIT
. I recently needed to verify that coredumps would be collected from a running knotd process and the easiest thing to do was to patch knotd to allow a signal like SIGQUIT
that would by default dump core.
Thanks!