mirror of
https://github.com/apache/nuttx.git
synced 2026-08-11 07:25:13 +00:00
sim/sim_rptun: use host_kill() to kill proxy core when stop proxy
To avoid hang in the host_waitpid() in sim_rptun_stop() Signed-off-by: Bowen Wang <wangbowen6@xiaomi.com>
This commit is contained in:
parent
906299df21
commit
47b6c1f2a9
1 changed files with 1 additions and 0 deletions
|
|
@ -245,6 +245,7 @@ static int sim_rptun_stop(struct rptun_dev_s *dev)
|
|||
|
||||
if ((priv->master & SIM_RPTUN_BOOT) && priv->pid > 0)
|
||||
{
|
||||
host_kill(priv->pid, SIGKILL);
|
||||
host_waitpid(priv->pid);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue