Skip to content

Commit

Permalink
serial: use nxsig_tgkill instead of nxsig_kill
Browse files Browse the repository at this point in the history
Caused nxsig_tgkill is for the one thread, nxsig_kill for the group

Signed-off-by: ligd <liguiding1@xiaomi.com>
  • Loading branch information
GUIDINGLI authored and xiaoxiang781216 committed Oct 12, 2024
1 parent 9f170a3 commit 3479622
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion drivers/serial/serial_dma.c
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,7 @@ void uart_recvchars_done(FAR uart_dev_t *dev)

if (signo != 0)
{
nxsig_kill(dev->pid, signo);
nxsig_tgkill(-1, dev->pid, signo);
}
#endif
}
Expand Down
2 changes: 1 addition & 1 deletion drivers/serial/serial_io.c
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ void uart_recvchars(FAR uart_dev_t *dev)

if (signo != 0)
{
nxsig_kill(dev->pid, signo);
nxsig_tgkill(-1, dev->pid, signo);
}
#endif
}

0 comments on commit 3479622

Please sign in to comment.