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:
ligd 2023-11-24 18:33:01 +08:00 committed by Xiang Xiao
parent 9f170a36e3
commit 3479622fec
2 changed files with 2 additions and 2 deletions

View File

@ -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
} }

View File

@ -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
} }