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 2020/10/27 17:17:04 UTC
[incubator-nuttx-apps] 02/02: usrsock_rpmsg: fix can't wake ppoll
when no ACTION
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-apps.git
commit 0781dbf9e940a537a71a1708ea3adfb2d36ba42b
Author: ligd <li...@xiaomi.com>
AuthorDate: Fri Oct 23 14:18:47 2020 +0800
usrsock_rpmsg: fix can't wake ppoll when no ACTION
N/A
no matter open/close CONFIG_SIGUSR1_ACTION, usrsock always do,
unmask SIGUSR1, set action to NULL.
Change-Id: I39ba51db8e4c77b4923c97598b3cb73c12473a2c
Signed-off-by: ligd <li...@xiaomi.com>
---
netutils/usrsock_rpmsg/usrsock_rpmsg_server.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/netutils/usrsock_rpmsg/usrsock_rpmsg_server.c b/netutils/usrsock_rpmsg/usrsock_rpmsg_server.c
index 63bb04f..c9262e0 100644
--- a/netutils/usrsock_rpmsg/usrsock_rpmsg_server.c
+++ b/netutils/usrsock_rpmsg/usrsock_rpmsg_server.c
@@ -839,6 +839,7 @@ int main(int argc, char *argv[])
pthread_mutex_init(&priv->mutex, NULL);
pthread_cond_init(&priv->cond, NULL);
+ signal(SIGUSR1, SIG_IGN);
sigprocmask(SIG_SETMASK, NULL, &sigmask);
sigaddset(&sigmask, SIGUSR1);
sigprocmask(SIG_SETMASK, &sigmask, NULL);