From 47b6c1f2a98f1c34af70b3ff8563ef452bbbd752 Mon Sep 17 00:00:00 2001 From: Bowen Wang Date: Sat, 24 May 2025 17:45:58 +0800 Subject: [PATCH] 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 --- arch/sim/src/sim/sim_rptun.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/sim/src/sim/sim_rptun.c b/arch/sim/src/sim/sim_rptun.c index 3723183296f..791952403d2 100644 --- a/arch/sim/src/sim/sim_rptun.c +++ b/arch/sim/src/sim/sim_rptun.c @@ -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); }