mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-09-07 09:16:32 +00:00
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 <liguiding1@xiaomi.com>
This commit is contained in:
parent
d791afff4c
commit
0781dbf9e9
1 changed files with 1 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue