From d0f61412782a2823eb2cb2f98886a9110d083414 Mon Sep 17 00:00:00 2001 From: heyuanjie87 Date: Mon, 20 Jan 2025 19:38:41 +0800 Subject: [PATCH] =?UTF-8?q?[lwp]=E4=BF=AE=E6=AD=A3=E6=97=A0=E6=B3=95?= =?UTF-8?q?=E9=80=9A=E8=BF=87=E6=96=87=E4=BB=B6=E5=90=8D=E6=9F=A5=E6=89=BE?= =?UTF-8?q?pid=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/lwp/lwp_pid.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/lwp/lwp_pid.c b/components/lwp/lwp_pid.c index e45554434da..34285598dfb 100644 --- a/components/lwp/lwp_pid.c +++ b/components/lwp/lwp_pid.c @@ -813,7 +813,7 @@ pid_t lwp_name2pid(const char *name) if (lwp) { - process_name = strrchr(lwp->cmd, '/'); + process_name = strrchr(lwp->exe_file, '/'); process_name = process_name? process_name + 1: lwp->cmd; if (!rt_strncmp(name, process_name, RT_NAME_MAX)) {