Merge in SNORT/snort3 from ~MSONEJA/snort3:crash_handler_fix to master
Squashed commit of the following:
commit
c880afa890d8b451968f1dd7aa895ccbaf57f689
Author: msoneja <msoneja@cisco.com>
Date: Wed Aug 10 11:36:34 2022 +0000
helpers: make install_oops_handle and remove_oops_handle so_public, install process.h and sigsafe.h
set (HELPERS_INCLUDES
${HYPER_HEADERS}
base64_encoder.h
- buffer_data.h
+ bitop.h
boyer_moore_search.h
+ buffer_data.h
+ json_stream.h
literal_search.h
+ process.h
scratch_allocator.h
- json_stream.h
- bitop.h
+ sigsafe.h
)
add_library (helpers OBJECT
markup.cc
markup.h
process.cc
- process.h
ring.h
ring_logic.h
sigsafe.cc
- sigsafe.h
scratch_allocator.cc
)
#ifndef PROCESS_H
#define PROCESS_H
+#include "main/snort_types.h"
+
// process oriented services like signal handling, heap info, etc.
enum PigSignal
void init_signals();
void term_signals();
-void install_oops_handler();
-void remove_oops_handler();
+SO_PUBLIC void install_oops_handler();
+SO_PUBLIC void remove_oops_handler();
void help_signals();
void daemonize();
#include <cstddef>
#include <cstdint>
-class SigSafePrinter
+#include "main/snort_types.h"
+
+class SO_PUBLIC SigSafePrinter
{
public:
SigSafePrinter(char *buf, size_t size);