Browse Source

add SIG_IGN support

shaojinchun 4 years ago
parent
commit
e789a1f367
1 changed files with 5 additions and 0 deletions
  1. 5 0
      components/lwp/lwp_signal.c

+ 5 - 0
components/lwp/lwp_signal.c

@@ -303,6 +303,11 @@ lwp_sighandler_t lwp_sighandler_get(int sig)
     }
 out:
     rt_hw_interrupt_enable(level);
+
+    if (func == (lwp_sighandler_t)SIG_IGN)
+    {
+        func = RT_NULL;
+    }
     return func;
 }