Skip to content

Commit ed3222c

Browse files
authored
[lwp]修正无法通过文件名查找pid的问题 (#9935)
1 parent 45bb1dd commit ed3222c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/lwp/lwp_pid.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -813,7 +813,7 @@ pid_t lwp_name2pid(const char *name)
813813

814814
if (lwp)
815815
{
816-
process_name = strrchr(lwp->cmd, '/');
816+
process_name = strrchr(lwp->exe_file, '/');
817817
process_name = process_name? process_name + 1: lwp->cmd;
818818
if (!rt_strncmp(name, process_name, RT_NAME_MAX))
819819
{

0 commit comments

Comments
 (0)