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
@ -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…
x
Reference in New Issue
Block a user