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
pgpVCOf0yCg27.pgp
De
I'm trying to port a program using ptrace from Linux to FreeBSD.
For this reason I'm trying to understand how ptrace on FreeBSD works.
Below is a sample program I've written which fork()'s and executes
"true" after calling PT_TRACE_ME. Having read the manual page of ptrace
I assume the printf() in