mirror of https://github.com/OISF/suricata
signal: use centralized pthread_sigmask for signals
according to its man page, sigprocmask has undefined behavior in multithreaded environments. Instead of explictly blocking the handling of SIGUSR2 in every thread, direct block handling SIGUSR2 before creating the threads and enable again the handling of this signal afterwards. In this way, only the main thread will be able to manage this signal properly.pull/3183/head
parent
990e53222e
commit
1bdf325a9a
Loading…
Reference in New Issue