Apparently, the "truss" trace tool has a bug. At least I was told that
the tracer program should not change the return value of the getppid()
call inside the traced process. Here is an example program:
%cat test.c
#include <stdio.h>
int main() {
while(1) {
sleep(5);
printf("ppid = %d\n", getppid());
}
}
%gcc -o test test.c
%./test
ppid = 47653
ppid = 47653
ppid = 47653 # Started "truss -p 48864" here!
ppid = 49073
ppid = 49073
ppid = 49073
I cannot install strace, beacuse my platform is amd64. What other
options do I have?
Thanks
Laszlo
_______________________________________________
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"