Community
Participate
Working Groups
the function pid2id() in file agent/tcf/framework/context.c. After the fix of Bug 579362, the function uses the pid_t type to compute the ID, but since it is not unsigned, then it will not get a decimal string. On VxWorks for 64bit the process IDs is: typedef long pid_t; And in my test, the pid is 0xffff800000124f20, it is a signed long, then it got a strange string. Bug 579362 - the process IDs should be pid_t instead of UINT32 in waitpid.c and waitpid.h files
if I only changed the line 55 in function pid2id(), it seems everything is OK: from: pid_t n = pid; to: unsigned long n = pid;
Fixed. Thanks!