mirror of
https://github.com/apache/nuttx.git
synced 2026-05-30 13:27:01 +08: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:
@@ -245,6 +245,7 @@ static int sim_rptun_stop(struct rptun_dev_s *dev)
|
|||||||
|
|
||||||
if ((priv->master & SIM_RPTUN_BOOT) && priv->pid > 0)
|
if ((priv->master & SIM_RPTUN_BOOT) && priv->pid > 0)
|
||||||
{
|
{
|
||||||
|
host_kill(priv->pid, SIGKILL);
|
||||||
host_waitpid(priv->pid);
|
host_waitpid(priv->pid);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user