mirror of
https://github.com/zeek/zeek.git
synced 2025-10-06 16:48:19 +00:00
Merge remote-tracking branch 'origin/fastpath'
* origin/fastpath: Fix overrides of TCP_ApplicationAnalyzer::EndpointEOF. Fix segfault when incrementing whole vector values. Remove baselines for some leak-detecting unit tests. Unblock SIGFPE, SIGILL, SIGSEGV and SIGBUS for threads.
This commit is contained in:
commit
731292a7a9
27 changed files with 98 additions and 212 deletions
|
@ -164,6 +164,14 @@ void* BasicThread::launcher(void *arg)
|
|||
// process.
|
||||
sigset_t mask_set;
|
||||
sigfillset(&mask_set);
|
||||
|
||||
// Unblock the signals where according to POSIX the result is undefined if they are blocked
|
||||
// in a thread and received by that thread. If those are not unblocked, threads will just
|
||||
// hang when they crash without the user being notified.
|
||||
sigdelset(&mask_set, SIGFPE);
|
||||
sigdelset(&mask_set, SIGILL);
|
||||
sigdelset(&mask_set, SIGSEGV);
|
||||
sigdelset(&mask_set, SIGBUS);
|
||||
int res = pthread_sigmask(SIG_BLOCK, &mask_set, 0);
|
||||
assert(res == 0); //
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue