You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2021/02/26 06:27:33 UTC

[incubator-nuttx] branch master updated: signal: set SIGRTMIN to SIGUSR1 because signo 0 don't catch.

This is an automated email from the ASF dual-hosted git repository.

xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git


The following commit(s) were added to refs/heads/master by this push:
     new 48050c9  signal: set SIGRTMIN to SIGUSR1 because signo 0 don't catch.
48050c9 is described below

commit 48050c9425b955995e07e1fd48e7e8898dd13ced
Author: Jiuzhu Dong <do...@xiaomi.com>
AuthorDate: Fri Feb 19 12:25:03 2021 +0800

    signal: set SIGRTMIN to SIGUSR1 because signo 0 don't catch.
    
    Change-Id: I600fed48d25e19c229aac899508b86ddfebb24f6
    Signed-off-by: Jiuzhu Dong <do...@xiaomi.com>
---
 include/signal.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/signal.h b/include/signal.h
index 97707af..269917c 100644
--- a/include/signal.h
+++ b/include/signal.h
@@ -43,7 +43,7 @@
 
 #define NULL_SIGNAL_SET ((sigset_t)0x00000000)
 #define ALL_SIGNAL_SET  ((sigset_t)0xffffffff)
-#define MIN_SIGNO       0
+#define MIN_SIGNO       1
 #define MAX_SIGNO       31
 #define GOOD_SIGNO(s)   ((((unsigned)(s)) <= MAX_SIGNO))
 #define SIGNO2SET(s)    ((sigset_t)1 << (s))