ptrace reparenting with PT_ATTACH

Chris Bond bondc at shaw.ca
Sat Nov 8 19:21:03 PST 2003


Hello,

    I notice that when I attach to a process via ptrace(PT_ATTACH, ...), the
process doing the tracing becomes the parent.  The real parent can then no
longer wait() for signals or anything, and may receive an ECHILD error if it
attempts to do so.  This seems like a bit of an oversight to me.  Is there
any way around it?

Thanks,

    Chris Bond



More information about the freebsd-hackers mailing list