]> git.ipfire.org Git - thirdparty/suricata.git/commit
lib: opt-in signal handlers 13568/head
authorJason Ish <jason.ish@oisf.net>
Mon, 30 Jun 2025 21:55:21 +0000 (15:55 -0600)
committerVictor Julien <victor@inliniac.net>
Wed, 2 Jul 2025 19:38:42 +0000 (21:38 +0200)
commit116d1763d91914b9220847fb98333ebda052f66a
tree5c24252fd7097ba46917e2937a96dd97e48da28a
parented4cf9a8031da52f4f0031ee4f10c7371ca8e7a4
lib: opt-in signal handlers

Instead of enabling signal handlers by default, require the user of
the library to opt-in. This is done with the call to
SCEnableDefaultSignalHandlers, which sets a flag to add the default
signal handlers.

This seems like the least invasive way to do this at this time, but it
will require some re-thinking for 9.0, especially if migrate globals
to engine instances, signal handling will need to be re-thought.

Ticket: #6814
examples/lib/custom/main.c
examples/lib/simple/main.c
src/main.c
src/suricata.c
src/suricata.h