Ali Polatel yazmış:
> I'm trying to port a program using ptrace from Linux to FreeBSD.
Answering myself after some more reading and trying...
> assert(0 == ptrace(PT_TO_SCE, pid, 0, 0));
The third argument of this call should be 1 not 0.
--
Regards,
Ali Polatel
pgpVCO
D(status));
assert(0 == ptrace(PT_TO_SCE, pid, 0, 0));
assert(0 < waitpid(pid, &status, 0));
assert(WIFSTOPPED(status));
printf("%s\n", strsignal(WSTOPSIG(status)));
ptrace(PT_KILL, pid, 0, 0);
return 0;
}
}
--
Regards,
Ali Polatel
pgpstnH78DWR1.pgp
Description: PGP signature