$OpenBSD$

Index: src/flb_worker.c
--- src/flb_worker.c.orig
+++ src/flb_worker.c
@@ -35,8 +35,15 @@
  */
 static void step_callback(void *data)
 {
-    int ret;
+    int ret, sigmask;
     struct flb_worker *worker = data;
+
+    /* Block signals to this thread */
+    sigmask = sigmask(SIGINT) | sigmask(SIGTERM) | sigmask(SIGSEGV);
+#ifndef _WIN32
+    sigmask |= sigmask(SIGQUIT) | sigmask(SIGHUP);
+#endif
+    sigblock(sigmask);
 
     /* Set the worker context global */
     FLB_TLS_SET(flb_worker_ctx, worker);
