summaryrefslogtreecommitdiffstats
path: root/vlib
diff options
context:
space:
mode:
Diffstat (limited to 'vlib')
-rw-r--r--vlib/vlib/threads.c15
1 files changed, 9 insertions, 6 deletions
diff --git a/vlib/vlib/threads.c b/vlib/vlib/threads.c
index 27b622f5137..c5e58bc001a 100644
--- a/vlib/vlib/threads.c
+++ b/vlib/vlib/threads.c
@@ -472,12 +472,15 @@ vlib_worker_thread_init (vlib_worker_thread_t * w)
{
vlib_thread_main_t *tm = vlib_get_thread_main ();
- /* worker threads wants no signals. */
- {
- sigset_t s;
- sigfillset (&s);
- pthread_sigmask (SIG_SETMASK, &s, 0);
- }
+ /*
+ * Note: disabling signals in worker threads as follows
+ * prevents the api post-mortem dump scheme from working
+ * {
+ * sigset_t s;
+ * sigfillset (&s);
+ * pthread_sigmask (SIG_SETMASK, &s, 0);
+ * }
+ */
clib_mem_set_heap (w->thread_mheap);