Comment by gary_0
Were you mostly going off the ptrace man page? I tried reading it to figure out ptrace and it made me feel not smart enough too.
The man page + Google! There's very few good examples of it, and I've accepted that I'm just not familiar enough with that specific problem space.