serial: use nxsig_tgkill instead of nxsig_kill
Caused nxsig_tgkill is for the one thread, nxsig_kill for the group Signed-off-by: ligd <liguiding1@xiaomi.com>
This commit is contained in:
parent
9f170a36e3
commit
3479622fec
|
@ -352,7 +352,7 @@ void uart_recvchars_done(FAR uart_dev_t *dev)
|
||||||
|
|
||||||
if (signo != 0)
|
if (signo != 0)
|
||||||
{
|
{
|
||||||
nxsig_kill(dev->pid, signo);
|
nxsig_tgkill(-1, dev->pid, signo);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
|
@ -309,7 +309,7 @@ void uart_recvchars(FAR uart_dev_t *dev)
|
||||||
|
|
||||||
if (signo != 0)
|
if (signo != 0)
|
||||||
{
|
{
|
||||||
nxsig_kill(dev->pid, signo);
|
nxsig_tgkill(-1, dev->pid, signo);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue